Static Tweet
Embedded and static tweet for Next.js applications using react-tweet.
Demo
- https://static-tweet.vercel.app/dark/1238918791947522049 - Dark mode, using the
app
directory. - https://static-tweet.vercel.app/light/1238918791947522049 - Light mode, using
pages
withgetStaticProps
. - https://static-tweet.vercel.app/light/swr/1238918791947522049 - Light mode, using
pages
with SWR.
How to use
To have a working copy of this project, run the following command:
pnpm create-next-app --example https://github.com/lfades/static-tweet/tree/main static-tweet
Add tweets to your app
This example uses react-tweet to render the tweets, you can see it in usage in Rauchg's blog and by going to its Next.js documentation.