Next.js App Router in Depth

Learn the App Router the way it actually works: routing and layouts, the server/client boundary, caching, and server actions.

popularIntermediate1h 59m4 modules18.2k students

What you’ll learn

  • Model routes with layouts

    Compose nested layouts, templates, and route groups so shared UI never re-renders needlessly.

  • Draw the server/client line

    Decide what runs on the server and what ships to the browser, and pass data across the boundary safely.

  • Control caching

    Understand what is cached, for how long, and how to revalidate it on demand instead of guessing.

  • Mutate with server actions

    Handle forms, validation, and optimistic updates without hand-writing an API layer.

Tracklist

4 modules · 1h 59m

  1. 1Routing and LayoutsHow the App Router turns folders into URLs, and how layouts let you share UI without re-rendering it.20m 26s
    1. Lesson 1.1File-system routing and the app directoryFree preview5m 50s
    2. Lesson 1.2Layouts, templates, and shared UI6m 20s
    3. Lesson 1.3Dynamic routes and route params8m 16s
  2. 2Server and Client ComponentsThe boundary that defines the App Router: what runs on the server, what ships to the browser, and how data crosses between them.32m 41s
    1. Lesson 2.1What server components actually do15m 48s
    2. Lesson 2.2The "use client" boundary10m 34s
    3. Lesson 2.3Passing data across the boundary6m 19s
  3. 3Data Fetching and CachingFetching data where it belongs, understanding what gets cached, and streaming the slow parts so the page appears immediately.32m 50s
    1. Lesson 3.1Fetching data in server components4m 21s
    2. Lesson 3.2Caching and revalidation25m 22s
    3. Lesson 3.3Streaming with Suspense3m 7s
  4. 4Server Actions and MutationsWriting data from the client without hand-building an API: actions, form validation, and optimistic UI.33m 32s
    1. Lesson 4.1Writing your first server action7m 51s
    2. Lesson 4.2Forms, validation, and error states16m 56s
    3. Lesson 4.3Optimistic updates8m 45s