Skip to content

Latest commit

 

History

History
34 lines (20 loc) · 1.06 KB

readme.md

File metadata and controls

34 lines (20 loc) · 1.06 KB

react-tweet for Vite

Installation

Follow the installation docs in the main README.

Usage

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

import { Tweet } from 'react-tweet'

export const IndexPage = () => <Tweet id="1628832338187636740" />

To see the code in action go to: /apps/vite-app/src/pages/index.tsx.

You can learn more about react-tweet in the API Reference.

Running the test app

Clone this repository and run the following commands:

pnpm install && pnpm dev --filter=vite-app...

The app shows the usage of react-tweet in different scenarios:

react-tweet is imported from the root directory, so you can make changes to the package and see the changes reflected in the app immediately.