Next.js Course: Beginner to Advanced with Examples

Free Next.js course for beginners in simple English: rendering, App Router, routing, layouts and components, with tested examples. More modules follow.

All levels · 13 lessons

Next.js Introduction

  1. What Is Next.js and Why Use It? - Learn what Next.js is, which problems it solves, how it differs from plain React, and why many teams use it to build fast, search-friendly websites.
  2. Rendering Explained: CSR, SSR, SSG and ISR - Understand client-side rendering, server-side rendering, static generation and incremental regeneration in Next.js with simple examples and when to use each.
  3. Next.js Architecture: App Router vs Pages Router - Learn how Next.js is built, the difference between the App Router and the older Pages Router, and why this course uses the modern App Router.
  4. Create Your First Next.js App and Understand the Folders - Install Node.js, create a Next.js app with create-next-app, understand every folder, run the development server and make a production build.

Routing and Navigation

  1. File-Based Routing: Pages and Nested Routes - Learn how Next.js turns folders into URLs with the App Router, how to create pages and nested routes, and which special files a route folder can hold.
  2. Dynamic Routes, Catch-All and Optional Catch-All - Build one page that serves many addresses: dynamic segments, several segments in one path, catch-all and optional catch-all routes with tested examples.
  3. Route Groups, Private Folders and Project Organisation - Organise a Next.js project with route groups in parentheses and private folders with an underscore, without changing URLs, and learn tidy folder habits.
  4. Navigation: Link, useRouter, usePathname and useSearchParams - Move between pages with the Link component and useRouter, highlight the active link with usePathname, read the query string with useSearchParams.
  5. Redirects, Not Found, Loading and Error Pages - Handle every unhappy moment in a Next.js app: redirects, custom 404 pages, loading screens, error boundaries with reset, and a global error page.

Components and Layouts

  1. Server Components vs Client Components and use client - Learn the difference between Server Components and Client Components in Next.js, what use client does, and when to choose each, with a tested example.
  2. Root Layout, Nested Layouts, Templates and Metadata - Build the root layout and nested layouts in the App Router, learn when to use a template, and set page titles and descriptions with the Metadata API.
  3. Styling: Global CSS, CSS Modules, Tailwind and Styled Components - Compare four ways to style a Next.js app: global CSS, CSS Modules, Tailwind CSS and styled-components, with a tested CSS Modules example and advice on choosing.
  4. Component Composition and Passing Data Between Components - Build reusable components, pass data with props and children from server to client, know what can be sent between them, and avoid common mistakes in Next.js.