Frontend · FOCUSED GUIDE

Learn Next.js.

Connect server rendering, routing, caching, and client boundaries.

YOUR LEARNING PATH

Next.js essentials

Start with the essentials or pick the concept you need.

RECOMMENDED NEXTApp Router vs Pages Router?
Start learning
01Next.js architectureExplore concepts
  1. App Router vs Pages Router?2 min
  2. Server Component vs Client Component?2 min
  3. SSR vs CSR vs SSG vs ISR?2 min
  4. What are streaming and Suspense?2 min
  5. Route handler vs Server Action vs middleware/Proxy?2 min
  6. How should caching and revalidation work?2 min
02Security & deploymentExplore concepts
  1. How do I prevent stale search results?2 min
  2. How should I secure and organize a frontend?2 min
  3. What should I check before deploying Next.js?2 min

What you will study in Next.js

Focused lessons organized by concept. Start with the explanation, trace the examples, and check your recall before moving on.

Next.js architecture

Next.js provides two routing systems: the Pages Router organizes page files, while the App Router uses nested route segments, layouts and React Server Components. They have different data-fetching and rendering conventions. Knowing which router a project uses prevents mixing APIs and assumptions from different architectures.

Security & deployment

Stale search results occur when requests finish in a different order from the user's inputs. A request for an older search can overwrite newer results unless the component checks which request is still relevant. Debouncing reduces request frequency but does not guarantee completion order.

Prerequisites
Related to Next.js
Expand your skills next