Next.js App Router Mastery
A version-qualified path through the Next.js App Router: server components, client boundaries, data fetching, caching layers, streaming, error handling, proxy, images, performance, testing and deployment, with the Next.js 15 and 16 behavior changes called out where they matter.
What you will be able to do
#- Build App Router features with the correct file conventions and know which component renders at a URL.
- Decide deliberately between server and client components and place client boundaries for minimal JavaScript.
- Fetch, cache and revalidate data across the modern caching layers with version-qualified defaults.
- Handle loading, streaming, errors and metadata the way the framework intends.
- Ship: performance, testing and deployment practices that hold up in production.
Prerequisites
#- React and UI Engineering Components, props and hooks use JavaScript closures, arrays and functions first.
Lessons
#The App Router Mental Model
beginner · 40 minutes · 6 exercises
Name the App Router file conventions and state which file renders at a given URL.
Routing, Dynamic Segments and Navigation
beginner · 45 minutes · 6 exercises
Build dynamic, catch-all and optional catch-all segments and read their values from awaited params.
Layouts, Templates and Metadata
beginner · 45 minutes · 6 exercises
Structure nested layouts and explain what persists across child navigations.
Server Components in Depth
intermediate · 50 minutes · 6 exercises
Trace what executes on the server versus the browser for a given component tree.
Client Boundaries and the 'use client' Directive
intermediate · 50 minutes · 6 exercises
Place 'use client' boundaries precisely and predict what each placement ships to the browser.
Data Fetching in Server Components
intermediate · 50 minutes · 6 exercises
Fetch data in server components with fetch and with non-fetch clients such as ORMs.
The Caching Layers
intermediate · 55 minutes · 6 exercises
Name the caching layers and what each one caches in the pre-Cache-Components model.
Cache Components: use cache, cacheLife and cacheTag
advanced · 55 minutes · 6 exercises
Enable and reason about Cache Components and its prerender validation.
Static, Dynamic and Streaming Rendering
intermediate · 50 minutes · 6 exercises
Decide per route whether it should prerender, render per request, or stream.
Server Actions and Mutations
intermediate · 55 minutes · 6 exercises
Define Server Actions inline and in files and wire them to forms with progressive enhancement.
Route Handlers
intermediate · 45 minutes · 6 exercises
Build route.ts endpoints with correct method exports and Web-standard request and response types.
Request APIs: cookies, headers, searchParams
intermediate · 45 minutes · 6 exercises
Read and write cookies and headers through the awaited request APIs in every sanctioned context.
Loading States and Streaming
intermediate · 45 minutes · 6 exercises
Use loading.tsx and Suspense to build shell-first pages with granular fallbacks.
Error Handling and Not-Found
intermediate · 50 minutes · 6 exercises
Build error.tsx and global-error.tsx boundaries with working reset and accessible messages.
Parallel and Intercepting Routes
advanced · 50 minutes · 6 exercises
Compose parallel route slots with independent loading and error states.
Proxy and Middleware: the Request Gatekeeper
intermediate · 50 minutes · 6 exercises
Write a proxy function with a scoped matcher that redirects, rewrites or annotates requests.
Images, Environment Variables and Config
beginner · 50 minutes · 6 exercises
Configure next/image correctly for local and remote sources including the Next.js 16 images changes.
Performance Optimization in the App Router
intermediate · 50 minutes · 6 exercises
Diagnose which parts of a page ship JavaScript and move client boundaries down the tree.
Testing and Debugging Next.js Applications
intermediate · 50 minutes · 6 exercises
Choose the right test layer for server components, route handlers, server actions and client interactions.
Deployment and the Capstone Runbook
advanced · 50 minutes · 6 exercises
Explain what the default build produces and when output: standalone is the right choice.
Study journeys
#Skip-ahead journeys never remove a requirement. The prerequisite graph always reports the full chain; a skip-ahead course only marks where an assessment may substitute for study.
Zero to frontend engineer
Absolute beginner frontend developer
Start from markup and the language, then build and ship a React and Next.js interface.
Experienced engineer skip-ahead
Senior frontend engineer refreshing depth
Bypass React fundamentals by assessment and go straight to rendering depth, browser internals, debugging and AI features.
- React and UI Engineeringskip by assessment
- Next.js App Router Masteryyou are here
- Browser Internals
- Debugging and Code Review
- AI Engineering
Next in this journey: Browser Internals