What Next.js is and why it exists
React gives you components; Next.js adds the router, server rendering, bundler and deployment story a real site needs. What it decides and what it costs.
What Next.js is and why it exists
The player loads from youtube-nocookie.com when you press play. Nothing reaches YouTube before that.
Not started
What you'll learn
- React is a library for building UI from components; it deliberately says nothing about routing, bundling, server rendering or data loading, and Next.js is the framework that fills those gaps with one set of conventions.
- Next.js turns the file system into the router, renders components on the server by default, and ships only the JavaScript the browser actually needs.
- The same Next.js app can be served by a Node.js server, exported as static files, or hosted on a platform such as Vercel, so the framework is not tied to one host.
- Next.js is opinionated: you give up some choices in exchange for not having to assemble and maintain a router, bundler and rendering pipeline yourself.
The situation that made it necessary
Start with what React is. You write components, React turns them into DOM, and it keeps the DOM in sync as state changes. That is the whole job. Ask React how a URL like /products/42 should pick a screen, how your code should be bundled for the browser, or how to send finished HTML so a search crawler sees content, and it has no answer. It was designed that way.
For years that meant every team assembled the same pile of parts: a router, a bundler, a dev server, a way to split code, a way to render on the server, a way to load data before render. Each part had its own config and its own upgrade cycle, and the glue between them was code your team owned forever.
Think of it this way: React is an engine. You can build a car around an engine, and some teams should. Most just want to drive somewhere. Next.js is the car: engine included, steering and brakes already attached, with opinions about where the pedals go.
What Next.js decides for you
A handful of decisions do most of the work.
Routing. The folders under app/ are your URLs. A page.tsx inside app/blog/ makes /blog exist. You will see exactly how in the file-system router.
Where code runs. Components are Server Components by default: they run on the server, can read a database or a secret directly, and send the browser their result instead of their code. You opt into the browser, per file, when you need state or event handlers. The React side of that idea is covered in server components vs client components; the Next.js side starts in server components in Next.js.
When code runs. A page can be rendered at build time and served as a static file, rendered per request, or a mix of the two. You pick per route, often just by what the route reads.
Tooling. Next.js 16 ships its own bundler, Turbopack, and uses it for both next dev and next build. There is no webpack config to write, and images, fonts and scripts have built-in components that handle the common performance traps.
Deployment. A Next.js app is a Node.js program you can run anywhere, or static files if you export it, or something a platform such as Vercel hosts for you.
What it costs
Opinions cut both ways. You have to learn Next.js’s conventions: special file names, which exports it recognizes, the rules for what may run where. When a convention changes between major versions, you migrate with it. In this roadmap’s era, for example, middleware.ts became proxy.ts in version 16, and request values like params became promises to await. A pure single-page app that talks to an API and never needs server rendering can be simpler with a plain bundler. Choosing a React framework lays out that comparison.
The rest of this roadmap assumes you are comfortable with components, props, state and hooks. It does not re-teach them; the React roadmap does that.
What the video covers
This is the first video in Codevolution’s Next.js 15 series. Its chapters run through what Next.js is, why it is worth learning, the key features, and the prerequisites for the course, and it ends by pointing at the hello-world project. It is a short orientation rather than a deep dive, and it was recorded for Next.js 15, so details specific to 16, such as Turbopack as the default bundler and the renamed proxy.ts, come from this lesson and the ones after it.
Where this fits
This lesson sets the vocabulary: framework, server rendering, conventions. Next, creating a Next.js project gets one running on your machine.
Check yourself
Why does a plain React app need extra tools before it can serve a real website?
React only describes UI as components. It has no router to map URLs to screens, no bundler to turn your files into browser-ready assets, and no way to render HTML on the server, so each of those has to be chosen and wired together by you.
What does it mean that Next.js uses the file system as its router?
The folders and files you create under the app directory define the URLs your site responds to. You do not register routes in a configuration file or a route table; adding a folder with a page file adds a route.
What is the main trade-off of adopting Next.js instead of assembling your own stack?
You get decisions already made and maintained for you, such as routing, rendering and bundling, but you must learn and work within the framework's conventions, and you are tied to how its releases change those conventions.
Go deeper
Notes
Notes are saved to your account.
Everything else on this page works without one — progress and bookmarks keep themselves in this browser and come with you when you sign in. Notes are the one thing worth not trusting to a browser you might clear.
Your notes could not be loaded.