5 min read
Next.js vs React: when I choose each
React vs Next.js from shipping SaaS products: routing, data fetching, SEO, hosting and when a plain SPA is still the better engineering fit.
React is a UI library. Next.js is a framework built on React that decides how pages are routed, rendered and shipped. I still hear teams treat them as interchangeable. They are not — and picking the wrong one usually shows up months later as awkward SEO, slow first loads or a deployment story nobody wants to own.
I use both regularly: React (often with Vite) for dashboards and partner tools, Next.js for marketplaces and public product surfaces where routing, metadata and server rendering matter. This article is how I decide.
Advertisement
What React actually gives you
With React alone you get components, state and a rendering model. Everything else is your choice:
- Bundler — Vite, Webpack, Parcel
- Routing — React Router, TanStack Router, or none
- Data —
fetchin effects, React Query, SWR, Redux - Rendering — almost always a client-side SPA unless you add your own SSR
- Hosting — any static host or Node server you wire yourself
That flexibility is the point. For an authenticated admin panel behind a login, a SPA is often enough. There is no marketing SEO to protect, the app can load a shell and hydrate, and you avoid framework constraints you will never use.
What Next.js adds on top
Next.js standardises the decisions React leaves open:
- File-based routing for App Router (or Pages Router) routes
- Server Components and server-side data fetching so the first HTML can already contain meaningful content
- Metadata API for titles, Open Graph tags and canonicals per route
- API routes / Route Handlers when you want a thin BFF next to the UI
- Image, font and script optimisations that are tedious to rebuild by hand
- Deployment conventions that map cleanly to Vercel, Node servers or Docker
On Temacina.com, a B2B marketplace, those defaults matter. Supplier discovery, product search and quote flows need shareable URLs, predictable metadata and HTML that search engines and link previews can read without executing a large client bundle first.
Decision table I actually use
| Situation | Default choice | Why |
|---|---|---|
| Public marketing site or content-heavy product | Next.js | SEO, metadata, fast first paint with server HTML |
| Marketplace / multi-role SaaS with public pages | Next.js | Routing + server data for listings and detail pages |
| Logged-in dashboard only | React + Vite | Simpler toolchain, no SSR tax |
| Mobile companion webview | React + Vite or Expo Web | Keep the web surface close to the mobile stack |
| Need React Native later | Shared UI ideas, not shared Next routes | Native navigation is a different model |
Rendering: the real difference
In a classic React SPA, the server sends an almost empty document. The browser downloads JavaScript, boots React, then fetches data. Users and crawlers wait on that chain.
In Next.js App Router, a Server Component can fetch data on the server and stream HTML. The client still hydrates interactive islands, but the first bytes are useful. That is the difference between “the page exists” and “a spinner exists.”
I do not turn every component into a Server Component. Forms, filters, booking calendars and charts stay client-side. The rule of thumb: fetch and compose on the server; interact on the client.
Data fetching patterns that bite
React SPA anti-pattern
useEffect(() => {
fetch("/api/products")
.then((r) => r.json())
.then(setProducts);
}, []);
Fine for an internal tool. Painful for a public catalogue: waterfall requests, loading flashes, and nothing meaningful in the initial HTML.
Next.js server fetch
// app/products/page.tsx
async function ProductsPage() {
const products = await getProducts(); // runs on the server
return <ProductGrid products={products} />;
}
The page can still use client components for filters. Cache and revalidation (revalidate, tags) become part of the design instead of an afterthought.
SEO and social previews
If a URL must look correct when shared on LinkedIn, WhatsApp or X, you need server-rendered (or prerendered) metadata. Next.js Metadata API makes that routine. With a SPA you end up maintaining a separate prerender step or a headless CMS workaround.
Portfolio and blog sites can also use Astro (this site does) when the content is mostly static. The principle is the same: HTML first for public URLs.
Hosting and operations
React + Vite builds static assets. Cheap and simple.
Next.js can be static, hybrid or fully server-rendered. On a VPS you will containerise a Node server; on Vercel the platform absorbs most of that. For Temacina we run Next.js behind our own delivery pipeline on VPS infrastructure with Jenkins — workable, but you own Node process health, caching headers and zero-downtime deploys. That cost is justified when the product needs SSR. It is not justified for a private CRM.
When I still choose plain React
- The product is behind authentication and has no public content surface
- The team already owns a mature Vite + React Router setup
- Bundle size and time-to-interactive matter more than SEO
- We are embedding a UI into an existing host that is not Next-shaped
Common mistakes
- Starting with Next.js “just in case.” You inherit routing, caching and deployment complexity you may never need.
- Building a public marketplace as a pure SPA. You will fight SEO and first-load performance for the life of the product.
- Putting secrets in client components. Server Components and Route Handlers exist so API keys stay off the browser.
- Assuming Next.js replaces a real backend. For IZYA and similar products, Node/Express (or Django) still owns domain logic, auth and mobile clients. Next.js is the web surface, not the whole system.
Practical recommendation
- Public, multi-page, SEO-sensitive product → Next.js
- Private operational UI → React + Vite
- Content site with little interactivity → Astro or a static generator
- Mobile-first product → React Native / Expo for apps; Next.js only for the public web companion
What I would decide on a kickoff call
In the first technical session I try to lock four answers:
- Public vs authenticated: if marketing pages and SEO matter, Next.js (or similar) is on the table; if everything is behind login, plain React is still strong.
- Who renders HTML: marketing wants editable content and fast first paint — that pushes toward Next; ops dashboards want snappy SPA navigation after login.
- Mobile companion: if React Native is the primary product, I size the web surface explicitly instead of assuming Next “for free.”
- Who operates Node in production: if the team has no appetite to run a Node server, a static React build or a hosted Next tier must be chosen deliberately, not by default.
React vs Next.js is not a popularity contest. It is a question of where HTML is produced, who owns routing, and how much framework you want between your team and the browser.