Content & privacy
Frontend · INTERVIEW GUIDE

React & Next.js

Rendering, hooks, state ownership, performance, and server boundaries.

Practice this topic
Filters
6 questions

App Router vs Pages Router?

React & Next.js·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.

Intermediate2 min read

Server Component vs Client Component?

React & Next.js·Next.js architecture

A Server Component runs in the server environment and does not ship its component implementation to the browser as interactive JavaScript. A Client Component is part of a client boundary and supports state, effects and browser events. In Next.js, Client Components can still contribute server-generated HTML on the initial load, so client does not mean browser-only rendering.

Intermediate2 min read

SSR vs CSR vs SSG vs ISR?

React & Next.js·Next.js architecture

SSR, CSR, SSG and ISR describe when and where page content is generated. SSR renders for requests, CSR builds UI in the browser, SSG generates static content ahead of requests, and ISR refreshes generated content after deployment. The choice trades freshness, server work, cacheability and initial loading behavior.

Intermediate2 min read

What are streaming and Suspense?

React & Next.js·Next.js architecture

Streaming sends ready parts of a response while slower parts are still being prepared. Suspense defines a boundary that can show fallback UI while compatible child work is pending. Together they let users see useful content sooner instead of waiting for the slowest section to finish.

Intermediate2 min read

Route handler vs Server Action vs middleware/Proxy?

React & Next.js·Next.js architecture

Route handlers expose HTTP endpoints, Server Actions provide server-side functions for mutations, and middleware/Proxy can intercept requests for routing behavior. They are different entry points with different responsibilities. An action or handler exposed through the app must still validate input and enforce access near the protected work.

Intermediate2 min read

How should caching and revalidation work?

React & Next.js·Next.js architecture

Caching saves a previously computed or fetched result so it can be reused, while revalidation refreshes or invalidates that stored result. A cache design needs a key, a freshness rule and a plan for changes. In Next.js there can be several caching layers, so one invalidation mechanism may not describe every layer's behavior.

Intermediate2 min read

Difficulty is an editorial estimate. Completion means you chose to mark a question as understood.