Rebuilding the Twitter Embed Widget! (Next.js + Tailwind) @leerob
Rebuilding the Twitter Embed Widget! (Next.js + Tailwind)  @leerob
Uploaded December 2020 | Updated December 2026, 3 hours ago
Use the Twitter API, Tailwind CSS, and Next.js to embed tweets directly on your website without using any iframes or external scripts.

0:00 – Introduction
0:25 – Embedding Tweets (The Old Way)
1:28 – Tailwind Play (Building the Widget)
2:15 – Twitter API Overview
3:20 – Fetching Tweets with the Twitter API
4:25 – Formatting the API Response
6:48 – Creating a Next.js Page
8:01 – Tweet Component
10:34 – Conclusion

Links
–––––
Demo: leerob.io/tweets
Tailwind Play: play.tailwindcss.com/TsZaNJbeLy
PR: github.com/leerob/leerob.io/pull/257
API Docs: developer.twitter.com/en/docs/twitter-api/tweets/lookup/quick-start
API Reference: developer.twitter.com/en/docs/twitter-api/tweets/lookup/api-reference/get-tweets
Related Project: https://static-tweet.vercel.app/

–––––
Blog: leerob.io
Twitter: twitter.com/leeerob
GitHub: github.com/leerob
Course: react2025.com
Rebuilding the Twitter Embed Widget! (Next.js + Tailwind)Testing & Error Handling (Jest, React Testing Library) – Learn Next.jsBuilding High-Performance Marketing Websites – Lee Robinson (React Miami)My thoughts on BunBuilding APIs with Next.js
leerob |

Rebuilding the Twitter Embed Widget! (Next.js + Tailwind)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER