Last updated: June 26, 2026
10 of 10 questions
Next.js is a React framework adding file-based routing, server rendering, data fetching, bundling, and production optimisations out of the box.
The App Router (app/) uses React Server Components, nested layouts, and streaming; the Pages Router (pages/) is the older client-centric model with getServerSideProps.
SSG pre-renders at build time, SSR renders per request, and ISR serves static pages that revalidate and regenerate in the background on a schedule.
Default to Server Components for data and static UI; add "use client" only where you need state, effects, browser APIs, or event handlers.
Server Components fetch with async/await; the extended fetch API caches by default and you control revalidation with cache options or the revalidate export.
Route Handlers are server endpoints defined in route.ts files that export HTTP-method functions (GET, POST) and return Web Response objects.
Export a static metadata object or an async generateMetadata function from a page or layout; Next.js renders the corresponding head tags.
Middleware runs before a request completes, at the edge, to rewrite, redirect, or set headers/cookies — common for auth gating, locale, and A/B routing.
Server Actions are async functions marked "use server" that run on the server and can be called from components/forms, removing the need for manual API endpoints.
The server streams ready HTML immediately and sends slower, Suspense-wrapped parts as they resolve, improving TTFB and perceived load time.
Upload your resume and get an instant ATS score with keyword gaps — free, no sign-up.
React Interview Questions
50 questions
Advanced React Interview Questions
10 questions
Node.js Interview Questions