[{"data":1,"prerenderedAt":29},["ShallowReactive",2],{"$fxfQNI1NkIvJx6VpoMBSQb03YR7yXyj-ibJhGJxbop_w":3},{"slug":4,"title":5,"description":6,"date":7,"tags":8,"draft":13,"readingMinutes":14,"html":15,"related":16},"nextjs-vs-react","Next.js vs React: You're Choosing a Server, Not a Library","Next.js vs React in November 2026: what Next adds on top of React 19, when plain React with Vite is the better start, and the cost nobody mentions.","2026-11-26",[9,10,11,12],"nextjs","react","javascript","frontend",false,4,"\u003Cp>The question is a little off, and that&#39;s why the answers online go in circles. Next.js isn&#39;t an alternative to React. It&#39;s React plus a server, a router, a build setup and a set of opinions about where your code runs. So the real question is: do you want those opinions, and do you want a server?\u003C/p>\n\u003Cp>Versions on the npm registry as of November 26, 2026: \u003Ca href=\"https://react.dev/\">React\u003C/a> 19.3.1 (October 14) and \u003Ca href=\"https://nextjs.org/\">Next.js\u003C/a> 16.4.6 (November 9). Every Next app is a React app. Not every React app needs Next.\u003C/p>\n\u003Ch2>What React on its own gives you\u003C/h2>\n\u003Cp>Components, state, hooks, and the rendering engine. That&#39;s it, on purpose. Routing, data fetching, bundling and deployment are yours to pick. The usual starting point today is \u003Ca href=\"https://vite.dev/\">Vite\u003C/a> with React, React Router or TanStack Router for pages, and TanStack Query for data. Build it and you get a folder of static files that any CDN can serve for close to nothing.\u003C/p>\n\u003Cp>It&#39;s worth knowing what the React team itself says now. The \u003Ca href=\"https://react.dev/learn/creating-a-react-app\">Creating a React App\u003C/a> page recommends starting with a framework: Next.js (App Router) first, then React Router, then Expo for native apps. Starting from scratch with Vite, Parcel or Rsbuild is described as &quot;a lot like building your own framework&quot;. That&#39;s fair. It&#39;s also exactly what a lot of apps need, because their &quot;framework&quot; is ten routes and a login screen.\u003C/p>\n\u003Ch2>What Next.js adds\u003C/h2>\n\u003Cul>\n\u003Cli>\u003Cstrong>Server rendering and static generation.\u003C/strong> The HTML arrives with content in it. For anything that needs Google to read it (a marketing site, a blog, a store, docs) this matters a lot.\u003C/li>\n\u003Cli>\u003Cstrong>React Server Components\u003C/strong> as the default in the App Router. Components run on the server, fetch data there, and ship no JavaScript for themselves to the browser.\u003C/li>\n\u003Cli>\u003Cstrong>File-based routing\u003C/strong>, layouts, loading and error states per route.\u003C/li>\n\u003Cli>\u003Cstrong>Server Actions and route handlers\u003C/strong>, so a form can post straight to server code without you writing an API.\u003C/li>\n\u003Cli>\u003Cstrong>Image, font and script handling\u003C/strong> that you&#39;d otherwise wire up by hand.\u003C/li>\n\u003C/ul>\n\u003Cp>None of that is magic. All of it is work you don&#39;t have to do, as long as you&#39;re happy doing it the Next way.\u003C/p>\n\u003Cimg src=\"/blog/nextjs-vs-react/where-code-runs.webp\" alt=\"Where code runs: a Vite React app does routing, rendering and data in the browser, a Next.js app moves first HTML and Server Components to a server\" width=\"1600\" height=\"820\" loading=\"lazy\">\u003Ch2>The cost nobody puts in the comparison table\u003C/h2>\n\u003Cp>A plain React build is static files. A Next app that uses server rendering, Server Components or Server Actions needs something running server code. That&#39;s either Vercel (made by the same company, easiest by far), a Node server you run yourself, or an adapter for another platform. Static export exists in Next, but it switches off the features you probably picked Next for.\u003C/p>\n\u003Cp>So when people say &quot;Next.js is more complex&quot;, this is mostly what they mean. You now have a server: cold starts, function timeouts, caching rules that changed meaning between major versions, environment variables that exist on the server but not in the browser, and a bill that grows with traffic instead of staying at almost nothing. None of it is hard. It&#39;s just more things that can be wrong at 2 a.m.\u003C/p>\n\u003Cp>The other cost is mental. With Server Components you always have to know which side of the line a file is on. \u003Ccode>&quot;use client&quot;\u003C/code> at the top, or not. A hook in a server component is an error. Passing a function from server to client is an error. Senior people get used to it in a week. Juniors trip on it, and so do AI coding tools, which happily put a \u003Ccode>useState\u003C/code> in a server file and then &quot;fix&quot; the error by marking half the app as client code.\u003C/p>\n\u003Ch2>When I&#39;d pick which\u003C/h2>\n\u003Cp>\u003Cstrong>Plain React with Vite\u003C/strong> when the app lives behind a login. Dashboards, internal tools, admin panels, most SaaS apps after the marketing page. Google never sees those pages, so server rendering buys you little, and static hosting with an API behind it is simpler and cheaper to run. Same if you already have a backend in Laravel, Django or Express: let it be the server, and keep the frontend a frontend.\u003C/p>\n\u003Cp>\u003Cstrong>Next.js\u003C/strong> when pages need to be found and fast on first load: content sites, stores, landing pages, anything public with lots of URLs. Also when you want one codebase and one deploy for frontend and a light backend, and you&#39;re fine hosting on Vercel or running Node yourself.\u003C/p>\n\u003Cp>\u003Cstrong>Both\u003C/strong> is a perfectly normal answer. Public site in Next (or Astro, honestly, if it&#39;s mostly content), the logged-in app as a Vite React SPA on its own subdomain. Two simple things often beat one clever thing.\u003C/p>\n\u003Cp>One thing I&#39;d avoid: picking Next because it&#39;s &quot;the default&quot; and then turning every page into a client component because Server Components felt confusing. You end up paying for a server and getting an SPA.\u003C/p>\n\u003Ch2>What about Vue?\u003C/h2>\n\u003Cp>Same split, different names. Vue is the library, Nuxt is the framework with the server. This site runs on Nuxt, and the logic for choosing is identical, which tells you the question was never really about React.\u003C/p>\n\u003Cp>If you&#39;re stuck on this for your own project, or you have a Next app that got slow or expensive and you&#39;re not sure why, \u003Ca href=\"https://calendly.com/director-norsky/meeting\">book a free call\u003C/a>. I&#39;ll tell you straight whether it needs a server at all. More about what I build is on my \u003Ca href=\"/services/full-stack-development\">full-stack development\u003C/a> page.\u003C/p>\n",[17,21,25],{"slug":18,"title":19,"description":20},"vue-vs-react","Vue vs React in 2026: Which One I'd Pick for Your App","Vue vs React from a developer who ships both: reactivity, hiring, AI tools, Nuxt vs Next, and when each one is the wrong choice. Versions checked November 2026.",{"slug":22,"title":23,"description":24},"vite-vs-webpack","Vite vs Webpack: Which One I'd Start a Project On","Vite vs Webpack in November 2026: Vite 8 on Rolldown, webpack 5 still everywhere, what changes in dev and build, and when moving an old app is worth it.",{"slug":26,"title":27,"description":28},"typescript-vs-javascript","TypeScript vs JavaScript in 2026: When I'd Still Skip the Types","TypeScript vs JavaScript from a developer who writes both: what types catch, what they cost, Node running .ts files directly, and when plain JS is the right call.",1795910047497]