Pebellslearn by building
RoadmapsMatrixCoursesSandboxSign in

Course details

Next.js

Learn how Next.js turns a folder of React components into a complete web app. You will create a project, map folders to URLs, choose how each page is rendered, split server and client components, add layouts, loading and error screens, and write your own API endpoints — all while building one small hiking-trail guide.

Ready to learn6 sections · 24 lessons
Start learning

Course curriculum

Why Next.js4 lessons

See what React leaves open, what Next.js fills in, how it compares with Remix, why frameworks exist at all, and the difference between single-page apps and server rendering.

  1. Why Next.js10 min
  2. Next.js and Remix10 min
  3. Why Frameworks, and Why React12 min
  4. SPA vs SSR14 min
Your First Next.js App5 lessons

Scaffold Trailhead with create-next-app, build routes from folders, link between them, add a page per trail with dynamic segments, and learn the words the docs use for all of it.

  1. create-next-app12 min
  2. Folders Become Routes12 min
  3. Linking Between Pages12 min
  4. Dynamic Segments14 min
  5. Routing Terminology10 min
Rendering Strategies3 lessons

Compare building pages in the browser, on the server for every request, and once at build time, and learn how Next.js picks between them for each route.

  1. CSR and the SPA12 min
  2. Server-Side Rendering14 min
  3. Static Site Generation15 min
The App Router4 lessons

Compare the older Pages Router with the App Router, see why new projects use the App Router, and learn when a component runs on the server and when it needs 'use client'.

  1. Pages Router and App Router12 min
  2. Why Use the App Router?10 min
  3. Server Components14 min
  4. Client Components15 min
Layouts, Loading and Errors4 lessons

Wrap pages in layouts that persist, use templates when you need a fresh start, show loading screens while data streams in, and catch errors and missing pages without breaking the whole app.

  1. Layouts13 min
  2. Templates10 min
  3. Loading and Streaming14 min
  4. Error States14 min
API Endpoints4 lessons

Build route handlers that answer HTTP requests with the Web Request and Response objects, decide whether they are cached, stream long responses, and send visitors elsewhere with redirects.

  1. Route Handlers13 min
  2. Static vs Dynamic Handlers13 min
  3. Streaming Responses13 min
  4. Redirects13 min