React · Lesson 85 of 120
Frameworks
Next.js and others.
React is a library for building user interfaces. Frameworks build on it, adding routing, data loading, server rendering, and server components, all set up for you.
- React: the UI
- Frameworks: the rest
- Set up for you
Popular choices
Next dot j s is the most popular full framework, with server components built in. React Router can run as a full framework too. TanStack Start is a newer option. And plain Vite is perfect for apps that only run in the browser.
| Option | Best for |
|---|---|
| Next.js | full apps, server components |
| React Router | routing first, full stack |
| TanStack Start | type safe, full stack |
| Vite | browser only apps |
How to choose
Learning, or building a dashboard behind a login? Start with Vite. Need search engines to see your pages, or want server components? Pick a framework. Everything you've learned here works in all of them.
| key | value |
|---|---|
| Learning | Vite |
| Behind a login | Vite |
| Public pages, SEO | a framework |
| Your skills | work everywhere |
Summary
Frameworks add routing, data, and servers on top of React. Next, common mistakes.
Key takeaways- Next.js
- React Router
- Vite
Next up: Common Mistakes — and fixes