Next.js vs plain React with Vite: do you need a meta-framework?
Starting a React project used to mean Create React App. Today the common choices are a meta-framework like Next.js or a lightweight setup with Vite.
Vite + React
- Fast dev server and builds
- You choose your own router, data fetching and deployment
- Produces a static single-page app that can be hosted anywhere
- Great for dashboards, internal tools and apps behind a login where SEO is irrelevant
Next.js (or similar meta-frameworks)
- File-based routing and layouts out of the box
- Server-side rendering and static generation for faster first loads and SEO
- Server components and server actions blur the client/server line
- More concepts to learn, and some features work best on specific hosting
Questions to ask yourself
- Does this page need to be indexed by search engines or load fast for first-time visitors?
- Do you want a backend in the same project?
- Is your team comfortable with server rendering and its caching behavior?
Other meta-frameworks like Remix-style React Router setups, Astro and TanStack Start offer different takes on the same problem.
What do you start new React projects with? Has a meta-framework ever felt like overkill, or a plain SPA felt limiting?
Comments · 3
If you need SEO, server rendering or a shared full-stack story, a meta-framework saves real time. For a logged-in dashboard behind auth, plain React with Vite is simpler, and you avoid lock-in to hosting assumptions.
From a UX angle, the question is whether your pages need to load fast on first paint. If yes, server rendering matters; if it's an app, client-side is fine.
Does the choice get much harder to reverse later? I wonder how painful migrating from one to the other is once there are real users.