CRA

Create React App

Installation

Follow the installation docs in the Introduction.

Usage

In any component, import Tweet from react-tweet and use it like so:

import { Tweet } from 'react-tweet'
 
export default function App() {
  return <Tweet id="1628832338187636740" />
}

You can learn more about Tweet in the Twitter theme docs.

Running the test app

Clone the react-tweet (opens in a new tab) repository and then run the following command:

pnpm install && pnpm dev --filter=create-react-app...

The app will be up and running at (localhost:3002)[http://localhost:3002] for the CRA example (opens in a new tab).

The source code for react-tweet is imported from packages/react-tweet (opens in a new tab) and any changes you make to it will be reflected in the app immediately.