Next.js Interview Questions

Check out 30 of the most common Next.js interview questions and take an AI-powered practice interview

ReactTypeScriptVercelSSRAPI Routes
30+
Questions
12
Basic
13
Intermediate
5
Advanced
Q1

What is Next.js and what problems does it solve over plain React?

BasicFundamentals
+
Q2

What is the difference between the Pages Router and the App Router?

BasicRouting
+
Q3

What is the difference between SSR, SSG, ISR, and CSR in Next.js?

BasicRendering
+
Q4

What is the difference between Server Components and Client Components?

BasicReact Server Components
+
Q5

How do you create dynamic routes in the App Router?

BasicRouting
+
Q6

How do you handle API routes in Next.js?

BasicAPI Routes
+
Q7

What is next/link and why should you use it instead of an anchor tag?

BasicNavigation
+
Q8

How does the next/image component improve performance?

BasicPerformance
+
Q9

What is getStaticProps and getServerSideProps?

BasicData Fetching
+
Q10

What is the difference between fetch() in a Server Component and useEffect fetch in a Client Component?

BasicData Fetching
+
Q11

What is the purpose of layout.tsx and how does it differ from page.tsx?

BasicApp Router
+
Q12

How do you deploy a Next.js application?

BasicDeployment
+
Q13

How does the Next.js fetch cache work and what are the four cache layers?

IntermediateCaching
+
Q14

What are server actions and when should you use them?

IntermediateServer Actions
+
Q15

How do you handle loading and error states in the App Router?

IntermediateApp Router
+
Q16

What are parallel routes and intercepting routes?

IntermediateApp Router
+
Q17

What is middleware in Next.js and how is it different from middleware in Express?

IntermediateMiddleware
+
Q18

What is partial prerendering (PPR) and why is it interesting?

IntermediateRendering
+
Q19

How do you optimize fonts in Next.js?

IntermediatePerformance
+
Q20

How do you handle authentication in a Next.js app?

IntermediateAuthentication
+
Q21

How do you migrate from Pages Router to App Router?

IntermediateMigration
+
Q22

How do you debug hydration mismatches in Next.js?

IntermediateDebugging
+
Q23

What is the difference between revalidatePath and revalidateTag?

IntermediateCaching
+
Q24

How do you handle environment variables in Next.js?

IntermediateConfiguration
+
Q25

How do you handle internationalization (i18n) in Next.js?

IntermediateInternationalization
+
Q26

How do you optimise a Next.js app for the lowest possible Largest Contentful Paint (LCP) in India?

AdvancedPerformance
+
Q27

How would you architect a self-hosted Next.js deployment for an Indian SaaS at scale (1M+ MAU)?

AdvancedArchitecture
+
Q28

How does the dynamicIO mode in Next.js 15+ change the way you think about caching?

AdvancedCaching
+
Q29

How would you implement on-demand ISR with a webhook from a headless CMS, in a multi-instance self-hosted setup?

AdvancedArchitecture
+
Q30

What are the trade-offs between Next.js, Remix, and Astro for a content-heavy SEO product in India?

AdvancedArchitecture
+

Companies Hiring Next.js

Vercel
Netflix
TikTok
Hulu
Razorpay
Postman
CRED

Salary Insights

Average in India
₹7-24 LPA

Frequently Asked Questions

Is Next.js worth learning in 2026 if I already know React?

Yes — almost every senior frontend job posting in India (Razorpay, CRED, Postman, Meesho, Vercel India) lists Next.js as required or strongly preferred. A pure React (Vite) developer in 2026 caps out around ₹15 LPA; adding Next.js, RSC, and the App Router pushes that to ₹18-24 LPA at the mid-senior level and over ₹30 LPA at staff.

Should I learn the Pages Router or jump straight into the App Router?

Start with the App Router — it is what new projects use and what interviewers expect. But spend a few hours understanding Pages Router (getStaticProps, getServerSideProps, _app.tsx, _document.tsx, /pages/api) because most production codebases in 2026 still maintain Pages Router routes you will need to read and migrate.

How much does a Next.js developer earn in India?

₹7-24 LPA in 2026 for mid-to-senior frontend developers with strong Next.js skills. Junior roles (0-2 years) start at ₹5-9 LPA; staff and principal levels at unicorns (Razorpay, CRED, Postman) cross ₹30 LPA. Specialised performance/SEO roles at e-commerce (Meesho, Nykaa) and EdTech (Unacademy, GeeksforGeeks) pay at the upper end.

Can I run Next.js without Vercel?

Yes — Next.js is fully open source and runs anywhere Node.js or Bun runs. Self-hosting on AWS, GCP, DigitalOcean, or Coolify is common. The main thing you lose is automatic image optimization scaling (you need to size your server for sharp) and a shared ISR cache (you need to wire up @neshca/cache-handler with Redis). Vercel's pricing in India starts free (Hobby), then $20/month (~₹1,700) for Pro — for many Indian startups this is cheaper than the engineering time to self-host.

What is the most asked Next.js interview question in 2026?

'Explain the difference between Server Components and Client Components, and when you would use each.' Variants probe caching ('what are the four Next.js cache layers?'), hydration ('why does my useState throw?'), and architecture ('why is your form a server action instead of a fetch?'). If you can answer those four families clearly with real examples, you will pass most senior frontend interviews.

Which companies in India hire heavily for Next.js?

Razorpay, CRED, Postman, Meesho, Nykaa, Cure.fit, Unacademy, GeeksforGeeks, Vercel India, Hashnode, and most YC-backed Indian SaaS (Zoho subsidiaries are an exception — they still mostly use Vue / Ember). Even Tata Neu and ICICI's newer customer-facing surfaces use Next.js. The single biggest demand cluster is fintech and EdTech, where SEO and Core Web Vitals directly drive business. International companies with significant Indian engineering presence — Netflix, TikTok, Hulu, Vercel itself — also hire Next.js engineers from India for both India-based and remote roles, and these typically pay 1.5-2x the local market rate. If you are early-career and targeting Next.js specifically, prioritise TypeScript fluency alongside it — every senior interview will assume it, and starting in TypeScript from day one saves weeks of rework later.

Introduction

Next.js has become the default React meta-framework for production teams in 2026. Since the App Router stabilised in Next.js 13.4 and partial prerendering shipped in 15, the framework has shifted from a 'React with SSR' library to a full hybrid runtime that mixes static, streaming, and server components in a single response. If you have used Next.js commercially in the past two years, you have lived through Pages Router, App Router, React Server Components, server actions, and the new caching model — and an interviewer will probe all of them.

In India, Next.js is the dominant choice for senior frontend roles at Razorpay, CRED, Postman, Meesho, Cure.fit, and most YC-backed Indian SaaS startups. Salary expectations for mid-to-senior frontend engineers with strong Next.js experience sit in the ₹7-24 LPA range in 2026, with staff-level roles at unicorns crossing ₹30 LPA. Even GeeksforGeeks rebuilt its own learning surface on Next.js, which tells you how mainstream the stack has become for Indian content-heavy products.

This guide covers the 30 most-asked Next.js interview questions in 2026, grouped by difficulty. Every answer is grounded in the App Router as the default — but Pages Router context is called out because most production apps still ship a hybrid of the two. Each question includes the underlying concept, common gotchas, code examples where they add clarity, and tips on what interviewers really want to hear.