Q1. Explain SSR, SSG, ISR and CSR in Next.js.
These describe when HTML is produced. CSR ships a minimal shell plus a JS bundle; the browser fetches data and renders, so first paint is slower and SEO weaker, but navig...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (188 available).
These describe when HTML is produced. CSR ships a minimal shell plus a JS bundle; the browser fetches data and renders, so first paint is slower and SEO weaker, but navig...
The Pages Router uses files under pages/. Each file exports a default component, data comes from getStaticProps, getServerSideProps or getStaticPaths, and _app and _docum...
In the App Router components are Server Components by default. They run only on the server, can be async, can read databases or secrets directly, and send no JavaScript t...
You fetch inside async Server Components using the extended fetch: ```ts const res = await fetch('https://api.example.com/posts', { next: { revalidate: 60, tags: ['posts'...
Dynamic segments use bracket folders: app/blog/[slug]/page.tsx receives params as a prop, which is a Promise in recent versions. Catch-all routes use [...slug] and option...
Route Handlers live in app/api/.../route.ts and export HTTP-method functions such as GET, POST, PUT, DELETE and PATCH. They receive a standard Request and return a Respon...
You export a static metadata object or a generateMetadata async function from a layout or page. It can set title, description, canonical URL, Open Graph, Twitter cards an...
Middleware in middleware.ts at the project root runs before a request is completed, on the Edge runtime, and can rewrite, redirect, set headers or return a response direc...
Next.js has several cache layers. The Data Cache stores individual fetch results and can be tagged. The Full Route Cache stores rendered HTML and RSC payloads for static ...
Hydration is React attaching event handlers to server-rendered HTML. A mismatch happens when the server HTML differs from the client's first render, and React warns and r...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.