Home / Next.js Beginner
Next.js Beginner
Next.js from a first page to a bookshelf app: routing, Server and Client Components, data fetching, Server Actions, Route Handlers, caching, metadata, testing and deployment. Every example run for real on Next.js 16.4.6.
Next.js is the framework that turns React components into a complete web app: routing, server rendering, data fetching, forms and deployment. This course teaches it from the first install to a finished app, in 50 short lessons on Next.js 16.4.6 and React 19.3.
Course contents
Work top to bottom — the sidebar is the course. Topics later in the list assume the ones before them.
What Next.js Is
- Next.js What Is Next.js?
- Next.js Next.js vs React
- Next.js Next.js vs Nuxt, SvelteKit and Remix
- Next.js App Router vs Pages Router
- Next.js What You Need Before You Start
Install and First App
- Next.js Install Node.js
- Next.js Create Your First Next.js App
- Next.js The Project, File by File
- Next.js Run the Dev Server
- Next.js Your First Page
Routing
- Next.js Folders Are Routes
- Next.js Links and Navigation
- Next.js Dynamic Routes
- Next.js params Is a Promise
- Next.js Nested Layouts and Route Groups
Special Files and States
- Next.js loading.tsx
- Next.js error.tsx
- Next.js not-found.tsx
- Next.js Redirects
- Next.js template.tsx and global-error.tsx
Server and Client Components
- Next.js Server Components Are the Default
- Next.js "use client"
- Next.js The Boundary: What Can Cross It
- Next.js The Leaf Pattern
- Next.js Server or Client? The Decision
Data Fetching
- Next.js Fetch Data in a Server Component
- Next.js Reading Search Params
- Next.js generateStaticParams
- Next.js Fetching in Parallel
- Next.js Streaming with Suspense
Forms and Mutations
- Next.js Server Actions
- Next.js useActionState
- Next.js Validate with Zod
- Next.js revalidatePath
- Next.js Optimistic Updates
Route Handlers and the Backend
- Next.js Route Handlers
- Next.js A Small CRUD API
- Next.js Cookies and Headers
- Next.js proxy.ts
- Next.js Protecting Routes and Signing In
Caching, Rendering and Optimisation
- Next.js Static vs Dynamic Rendering
- Next.js The Three Caches
- Next.js Cache Components and use cache
- Next.js Images and Fonts
- Next.js Metadata and SEO
Ship It
- Next.js Testing a Next.js App
- Next.js Environment Variables
- Next.js The Production Build
- Next.js Deploy to Vercel
- Next.js Capstone: My Bookshelf, Live
Learn Next.js
Next.js Beginner starts where React Beginner ends. React teaches components. Next.js teaches what a real app needs around them: pages at real URLs, data loaded on the server, forms that save, sign-in that protects pages, and a build that can be deployed.
The course holds 50 lessons in 10 sections of 5, at about six minutes a lesson — 300 minutes in total, about five hours of reading and practice. It moves in the order a beginner actually needs: what Next.js is, installing it and running a first app, routing, the special files, the server and client boundary, data fetching, forms, the backend, caching and optimisation, then shipping the app.
One app runs through the whole course: My Bookshelf, a book-tracking app that lists books, adds a book, searches, marks books read and signs the reader in. Each section adds a real piece to it, and the capstone is the finished app, deployed.
Nothing here is a guess. Every closing example was run for real on Next.js 16.4.6 and React 19.3, and the output shown with each example is the output the real run gave. Lessons that teach an error show the real error text, so the message on the screen matches the message in the lesson.
What you will learn
Here is what the 50 lessons cover, in the order they teach it:
- What Next.js is, how it differs from plain React, and App Router versus the old Pages Router
- Installing Node.js, creating a first app with create-next-app, and running the dev server
- Routing: folders as routes, Link and navigation, dynamic routes, awaited params and search params, nested layouts and route groups
- Special files and states: loading.tsx, error.tsx, not-found.tsx, redirects, template.tsx and global-error.tsx
- Server Components and Client Components: the boundary between them, what can cross it, the leaf pattern, and a checklist for deciding which side a piece of code belongs on
- Data fetching in Server Components, generateStaticParams, fetching in parallel, and streaming with Suspense
- Forms end to end: Server Actions, useActionState, Zod validation with field-level errors, revalidatePath and optimistic updates with useOptimistic
- Route Handlers and the backend: a small CRUD API, cookies and headers, proxy.ts, and protecting routes with Auth.js sign-in
- Caching and rendering: static versus dynamic rendering, the three caches, Cache Components with use cache, images and fonts, metadata and SEO
- Shipping it: testing, environment variables, reading the production build route table, deploying to Vercel, and a second deployment as a plain Node server
Who this Next.js course is for
This course is for readers who finished JavaScript Intermediate and React Beginner, or who know the same ground from elsewhere: JavaScript, components, props, state and hooks. The opening section names exactly what it assumes, so the starting point can be checked in a minute.
TypeScript Beginner helps but is not required. The course is written in TypeScript throughout, because that is what create-next-app defaults to, and every lesson teaches the small amount of TypeScript it uses as it goes.
It suits someone who can already build a React page and now wants a whole app: real URLs, data from a server, forms that save, and a live deployment at the end. Students, career changers and hobbyists take this route when a single-page demo stops being enough.
How this course works
Every closing example was run for real on Next.js 16.4.6 and React 19.3 before publication. The output printed beside it is the output the real run gave, not a guess. That matters most when a lesson turns on a build table or an error message, where a guessed line would teach the wrong thing.
The sections run in one fixed order. The forms section leans on the server and client section before it, and the caching section leans on data fetching. Reading out of order is allowed, but the missing piece usually shows up fast.
The course is honest about what was verified and what was not. The Vercel deployment lesson is taught as steps, with no live Vercel URL verified on this build machine. The Docker deployment steps in the capstone are stated, not verified here. The plain-Node second deployment was run for real with npm start, and its lesson shows that run.
Every lesson ends with one exercise. Pick an answer, then read why it is right and why the tempting answers are wrong. That short check turns reading into a small test of what stuck.
Progress is saved right here in this browser, with no account and no cost. Close the tab and come back later: the course remembers where the reader stopped.
Frequently asked questions
What do I need to know before starting this Next.js course?
JavaScript and React: variables, functions, components, props, state and hooks. That ground is taught in JavaScript Intermediate and React Beginner, both live on this site. The first section names exactly what it assumes, so the starting point can be checked in a minute.
Do I need to know TypeScript first?
No. TypeScript Beginner helps but is not required. The course is written in TypeScript throughout, because that is what create-next-app defaults to, and every lesson teaches the small amount of TypeScript it uses as it goes.
Which version of Node.js do I need?
Node.js 20.9 or newer, with Node 22 LTS recommended. The install lesson covers Windows, macOS and Linux, and shows how to check the version with node -v and npm -v. The course itself was built and verified on Next.js 16.4.6 with React 19.3.
Does this course teach the Pages Router?
It teaches the App Router, which is the current default for every new project. One lesson compares App Router with the old Pages Router and explains what to do when an older tutorial shows pages and getServerSideProps, so old code stops being a mystery.
What can I build once I finish this course?
My Bookshelf, a finished book-tracking app: a list of books, a page per book, search, an add-book form with validation, sign-in, and a deployed app. The capstone also covers a second deployment as a plain Node server.
How long does Next.js Beginner take to complete?
The lesson minutes add up to 300, about five hours in total: 50 lessons at about six minutes each. Most readers finish inside a month of regular evenings, one section per sitting.
Next steps
- Node.js Beginner ❯ — The server side in depth: modules, npm, async code, files, HTTP and Express, in 50 lessons.
- MERN Beginner ❯ — The full stack next step: MongoDB, Express, React and Node in one finished app, in 50 lessons.
- TypeScript ❯ — The type layer in depth: annotations, interfaces, generics and narrowing, in 33 lessons.