Next.js
Guides in Next.js. Written like documentation — short paragraphs, real examples, interview-relevant depth.
Next.js Rendering Modes
intermediateSSR, SSG, ISR, and client rendering — when each helps, and how to talk about them in interviews.
intermediate
Next.js App Router Overview
beginnerapp/ directory mental model — layouts, server components by default, routing conventions, and how App Router differs from Pages Router.
beginner
File-based Routing
beginnerNext.js App Router file conventions map folders to URLs: page, layout, route groups, dynamic segments, and special files.
beginner
Layouts and Nested Routes
beginnerNested layouts in the App Router share chrome across routes, preserve state, and compose with loading and templates.
beginner
Server Components in Next.js
intermediateRSC mental model in the App Router — server vs client boundaries, data fetching, serialization rules, and composition patterns that stay maintainable.
intermediate
Client Components in Next.js
intermediateClient Components in the App Router: use client, hydration, bundling boundaries, and patterns that keep JS small.
intermediate
Data Fetching Patterns App Router
intermediateFetch data in Server Components with async/await and fetch caching: colocation, parallel requests, and client fallbacks.
intermediate
Caching in Next.js Overview
advancedNext.js caching layers: request memoization, data cache, full route cache, and router cache — what invalidates each.
advanced
Revalidate Path and Tag
advancedrevalidatePath and revalidateTag invalidate cached data and routes after mutations in the App Router.
advanced
Route Handlers
intermediateRoute Handlers implement HTTP endpoints with route.ts: verbs, Request/Response, caching, and when to prefer Server Actions.
intermediate
Middleware in Next.js
intermediateNext.js Middleware runs before a request completes: auth redirects, rewrites, matchers, and edge constraints.
intermediate
Streaming and Suspense Boundaries
advancedStream HTML/RSC payloads with Suspense in Next.js: loading.tsx, nested boundaries, and faster first paint.
advanced
Loading and Error UI Files
beginnerloading.tsx and error.tsx create Instant Suspense and error boundaries per route segment in the App Router.
beginner
Metadata API for SEO
intermediateNext.js Metadata API sets titles, descriptions, Open Graph, and dynamic SEO fields in the App Router.
intermediate
Image Component Optimization
intermediatenext/image optimizes responsive images: sizing, remote patterns, priority LCP, and common layout shift fixes.
intermediate
Font Optimization next/font
intermediatenext/font self-hosts fonts, subsets, and CSS variables to kill layout shift and extra network hops to Google.
intermediate
Static vs Dynamic Rendering
intermediateStatic vs dynamic rendering in the App Router: what forces dynamic, when static wins, and how to choose.
intermediate
ISR Mental Model
intermediateISR in the App Router: time-based revalidation, on-demand tags, stale-while-revalidate behavior, and when to go fully dynamic.
intermediate
Environment Variables in Next
beginnerNext.js env vars: server-only secrets, NEXT_PUBLIC_ exposure, .env files, and build-time inlining pitfalls.
beginner
Auth Patterns Overview
advancedAuth in Next.js App Router: cookies/sessions, middleware gates, server checks, and avoiding client-only security theater.
advanced
Deploying Next on Vercel
beginnerDeploy Next.js on Vercel: git integration, env vars, previews, build cache, and production checklist.
beginner
next/link Prefetch Behavior
intermediatenext/link prefetches route payloads in viewport: defaults, opt-out, dynamic routes, and bandwidth tradeoffs.
intermediate
Parallel Routes Overview
advancedParallel routes render multiple pages in one layout via named slots (@folder), independent loading, and modals.
advanced
Intercepting Routes Overview
advancedIntercepting routes show a parallel UI (modal) while keeping the underlying URL: folder conventions with (.) (..) etc.
advanced
Server Actions Overview
advancedServer Actions are async server functions callable from forms and client components: mutations, progressive enhancement, revalidation.
advanced
Edge Runtime Tradeoffs
advancedEdge Runtime vs Node.js in Next.js: cold starts, API limits, middleware, and when Node is the right default.
advanced