Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Latest commit

 

History

History
21 lines (15 loc) · 737 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 737 Bytes

react-twitter-notrack

⚠️ Unfortunately, things seem to have stopped working, probably as a result of Twitter improving their bot detection or shutting down their API. There were enough tradeoffs inherent in this project that I don't intend to continue maintaining it. Thus, it is no longer usable.


A component library for Twitter widgets built without Twitter's tracking scripts.

import { Tweet } from "react-twitter-notrack"

function App() {
    return (
        <Tweet id="20" apiUrl="https://twitter-proxy.breq.workers.dev">
    )
}

You will need to run a proxy to get around Twitter CORS. Using mine will not work in production!! I've provided the source code for my Cloudflare Worker in src/worker.js.