React Server Components, explained like a kitchen
Server Components confuse people because the mental model is missing. Here's the kitchen picture that makes the split click, and the rules that keep it clean.
Two React full-stack frameworks, one decision. How I actually choose between Next.js and TanStack Start, and the kinds of projects where each one wins.

Ask me which React framework to use and I'll feel "Next.js" forming on my tongue before you finish the sentence. Seven years of writing code builds reflexes. Not all of them are good.
Here's the uncomfortable truth. Both answers are right, and the wrong one only shows its face about six months in, when the thing you skimped on becomes the thing you touch every single day.
Next.js and TanStack Start are both TypeScript-first React frameworks that render on the server and hydrate in the browser. Same family. Different center of gravity. Next.js is built around React Server Components and a huge ecosystem. TanStack Start is built around a router so type-safe it feels like the compiler is holding your hand from the URL bar all the way to the database.
I've shipped real products on both. Here's how I actually pick.
First, the thing that doesn't decide it.
Neither is the "safe" pick or the "risky" pick on types. Both are written in TypeScript, both infer aggressively, both catch many type mismatches at compile time; neither eliminates runtime failures. If a framework can't be TypeScript from the phone to the database, I'm not interested, and I've written about why that line is non-negotiable for me. Neither of these makes me cross it.
So the real question isn't which one is type-safe. It's where you want the type safety sharpest. That difference is most of this post.
Next.js bet early on React Server Components, and the bet paid off.
Server Components render on the server, at build time or request time, and their code never lands in the browser bundle. If your product is content-heavy, if SEO pays your bills, or if you want big chunks of the page to ship zero JavaScript, this is the smoother road. I laid out the mental model in the kitchen analogy post, and Next.js is where that model is most grown up.
It pays off in places you wouldn't expect. On the Garden Vareli kiosk, server-rendered pages arrived as finished HTML, which is exactly what a service worker wants to cache. Server rendering was half the reason the kiosk works with the network unplugged.
Deployment is a solved problem. Image handling, middleware, auth libraries, and the whole aisle of tutorials someone on your team will Google at 11pm. It's all there and it mostly just works. The Next.js docs are the closest thing this space has to a default reference.
The App Router asks you to hold a lot in your head. Server components, client components, the boundary between them, and a caching model that has surprised more than one senior engineer. Real power, with a toll booth on the way in.
Now the other side. This is the part people sleep on.
TanStack Start is built on TanStack Router, and the router carries the whole thing. Your routes are typed. Your search params are typed and validated. Your loaders run before the component renders and hand data down with full inference, no any anywhere in the pipe. The router's type-safety guide shows how those types flow through the entire route tree. Change a route param and every call site that got it wrong lights up red before you even save the file.
// src/routes/posts.$postId.tsx: the generator only picks up an exported `Route`
export const Route = createFileRoute('/posts/$postId')({
loader: ({ params }) => fetchPost(params.postId),
component: Post,
})
function Post() {
const post = Route.useLoaderData() // fully typed, no casting
return <h1>{post.title}</h1>
}For app-heavy products, dashboards, internal tools, anything where users live inside the interface and the URL carries real state, this feels genuinely different. The router stops being plumbing and becomes the backbone.
On the BIM browser viewer, I built on TanStack Start and kept an unbroken type spine: Drizzle schema, Zod at every boundary, and server functions that carry inferred types straight into React components. I evaluated adding tRPC on top and cut it. The server functions already gave me end-to-end typed calls, so tRPC would have been one more moving part buying the same guarantee. Knowing what to leave out is half the job.
It's younger. The ecosystem is thinner, the tutorials fewer, and you'll write a bit more glue yourself. The TanStack Start docs are good. They're just not ten years deep yet.
Here's the whole decision on one screen.
| Next.js | TanStack Start | |
|---|---|---|
| Rendering model | RSC-first, server components by default | SSR and streaming, client-led interactivity |
| Routing | File-based App Router | Type-safe router, params and search validated |
| Type safety | Strong, TS throughout | Strong, sharpest at the router and loaders |
| Server calls | Server Actions and route handlers | Typed server functions |
| Ecosystem | Huge, mature, deploy anywhere | Younger, growing fast, lean |
| When it wins | Content, SEO, marketing, RSC-heavy apps | Dashboards, tools, router-as-backbone products |
Read the last row twice. That's the one that actually predicts regret.
I ask one question before anything else, and it does most of the work.
If people arrive from Google, read something and leave, the URL is a table of contents. Content sites, marketing pages, blogs, docs. Next.js, most days. This site runs on it.
If people log in and live there, moving between views and holding state in the URL, then the URL is the application. Now I want the router that treats it that way, and TanStack Start earns the pick.
This is where I disagree with most framework comparison posts. They crown a winner on features. In a genuine tie, features are the wrong tiebreaker. A framework you understand beats a "better" one you're fighting at midnight. That isn't a compromise. That's respecting the constraint, and a lean budget is a constraint worth respecting.
Whichever frontend wins, the API can stay the same. I pair both with Hono on the backend and a shared types package, so the framework decision stays a frontend decision instead of a rewrite of everything behind it.
Before choosing for a six-month build, spend a day on its most awkward route. A hypothetical booking dashboard is a good test: authenticated access, filters in the URL, a slow query, an empty result and a failed save.
Build the same slice in each candidate, using the same data. Then check:
Record what broke, how long the fix took, and which tradeoff your team can maintain. These are proposed evaluation steps, not benchmark results. A hello-world speed comparison mostly proves that both frameworks can say hello.
Use the TanStack Start overview and Next.js server/client guide to check the current model. Both can render HTML on the server; SEO is not an exclusive Next.js feature. My preference is a starting hypothesis, not a law of React. For the underlying boundary, read the kitchen explanation.
I've shipped a real product on it, the BIM viewer, so I'm comfortable saying yes for the right kind of app. The core and the router underneath it are solid. The surrounding ecosystem is thinner than Next.js, so budget a little extra time for glue code.
It can, though you'll carry RSC machinery you may never use. For a heavily interactive app with no real SEO need, TanStack Start often fits the shape better. Match the tool to the traffic, not to the hype cycle.
Yes. Both are TypeScript end to end, so both work well with a shared types package and an RPC-style client. That safety across the wire is the whole reason I stay inside this stack.
If you already think in Server Components, Next.js feels natural. If you think in routes and loaders, TanStack Start clicks faster. Neither is hard; they're organised around different ideas about where the app lives.
You can, and it costs real time, mostly in routing and data loading. Keeping business logic in a separate typed API and shared packages makes the move far cheaper. That's another quiet argument for one repo with shared packages.
There's no maximalist answer here, and anyone selling you one is selling, not advising. Next.js and TanStack Start are both excellent, both TypeScript to the bone, both frameworks I reach for without a second thought. The pick comes down to what your product actually is: a place people read, or a place people work. Get that one question right and the framework nearly chooses itself.
If you're staring at this decision for something real, tell me what you're building and I'll tell you honestly which way I'd lean, even if the answer is "the one you already know."
Was this useful?
No account needed. One like per browser; click again to undo.
Prabir Singh
Full-stack engineer in Mumbai. Twenty years in sales taught me why people buy; seven years of code taught me how to build what they'll pay for. I still read error messages the way I once read objections: as the most honest feedback of the day. More about me or start a project.
Server Components confuse people because the mental model is missing. Here's the kitchen picture that makes the split click, and the rules that keep it clean.
How I wired GA4, Google Tag Manager and self-hosted Umami with Consent Mode v2 in Next.js, plus the GTM consent bug that silently dropped every first visit.
One language from the phone to the database. Why every project I take on is TypeScript end to end, and why I stopped apologising for it.