Skip to content

Next.js Interview Preparation Roadmap

Next.js is the React framework — it adds routing, rendering strategies, a server runtime, bundling and deployment on top of React.

Suggested Learning Order

  1. App Router
  2. Data Fetching & Caching
  3. API Routes & Route Handlers
  4. Pages Router — legacy, but still asked
  5. Deployment
  6. Interview Questions

Version Note (Important)

These notes target Next.js 16 (released October 2025, current stable through 2026). Several answers changed between Next 14/15 and Next 16, and interviewers ask both. Where behaviour changed, both are shown.

The big shifts in Next.js 16:

ChangeBefore (13–15)Next.js 16
CachingImplicit — fetch cached by default, opt outExplicit — nothing cached unless you say "use cache"
Cache configexperimental.ppr, experimental.dynamicIOcacheComponents: true
Middleware filemiddleware.tsproxy.ts (middleware.ts deprecated)
params / searchParamsSync objectAsync — must await
cookies() / headers()SyncAsync — must await
BundlerwebpackTurbopack (default)
PPRExperimental flagDefault behaviour with Cache Components
next lintBuilt inRemoved — use ESLint or Biome directly

Also: Node.js 20.9+ and TypeScript 5.1+ are now the minimums, and AMP support is gone.


Why Next.js Over Plain React?

Problem with plain React (CRA/Vite SPA)Next.js answer
Empty HTML shell — bad SEOSSR / SSG / Server Components
Slow first paintServer rendering + streaming
No routingFile-system routing
No backendRoute Handlers + Server Actions
Manual code splittingAutomatic, per route
Image, font, script optimisationBuilt in
Deployment configZero-config on Vercel, adapters elsewhere

What Interviewers Actually Test

AreaThe real question behind it
Server vs Client ComponentsDo you understand what ships to the browser
Rendering strategiesCan you pick SSG/SSR/ISR for a given page
CachingDo you know where the four caches live
Server ActionsCan you mutate data without an API route
loading.js / error.jsDo you know the file conventions
Metadata / SEOHave you shipped a real public site

Best Practice Websites

© 2025 DDocs · Dipak's Documentation Guide