Next.js Interview Questions
Q.
What is Next.js?
▾
Q.
How is Next.js different from React?
▾
Q.
What is file-based routing in Next.js?
▾
Q.
What is the difference between the pages directory and the app directory?
▾
Q.
What is _app.js used for in the Pages Router?
▾
Q.
What is _document.js used for?
▾
Q.
How do you create a new page in Next.js?
▾
Q.
What is the next/link component used for?
▾
Q.
What is the next/image component used for?
▾
Q.
What is Server-Side Rendering (SSR) in Next.js?
▾
Q.
What is Static Site Generation (SSG) in Next.js?
▾
Q.
What is Client-Side Rendering (CSR)?
▾
Q.
What are API routes in Next.js?
▾
Q.
How does Next.js handle CSS?
▾
Q.
What command is used to start a Next.js development server?
▾
Q.
What are getStaticProps, getServerSideProps, and getStaticPaths in the Pages Router?
▾
Q.
What is Incremental Static Regeneration (ISR)?
▾
Q.
What are dynamic routes in Next.js?
▾
Q.
What are catch-all routes in Next.js?
▾
Q.
What are Server Components and Client Components in the App Router?
▾
Q.
What is the purpose of layout.js in the App Router?
▾
Q.
What is loading.js in the App Router?
▾
Q.
What is error.js in the App Router?
▾
Q.
What is middleware in Next.js?
▾
Q.
How does Next.js handle environment variables?
▾
Q.
What is the difference between next/router and next/navigation?
▾
Q.
How do you handle a 404 page in Next.js?
▾
Q.
What is prefetching in Next.js?
▾
Q.
How does Next.js optimize fonts?
▾
Q.
What is the difference between redirect and rewrite in next.config.js?
▾
Q.
How do you fetch data inside a Server Component?
▾
Q.
How does streaming work with Server Components in Next.js?
▾
Q.
What is the difference between the Node.js runtime and the Edge runtime?
▾
Q.
How does caching work in the App Router?
▾
Q.
How do you invalidate cached data in the App Router?
▾
Q.
What are Server Actions in Next.js?
▾
Q.
How would you implement authentication in a Next.js application?
▾
Q.
What is the difference between generateStaticParams and getStaticPaths?
▾
Q.
How does Next.js handle code splitting?
▾
Q.
What is Partial Prerendering (PPR) in Next.js?
▾
Q.
How do Route Handlers differ from API Routes in the Pages Router?
▾
Q.
How would you optimize the performance of a large Next.js application?
▾
Q.
How does Next.js support internationalization (i18n)?
▾
Q.
What is hydration, and what causes hydration errors?
▾
Q.
How do you deploy a Next.js application?
▾
Q.
What is the difference between output: 'standalone' and the default build output?
▾
Q.
How do parallel routes and intercepting routes work in the App Router?
▾
Q.
How would you debug a performance issue in a production Next.js app?
▾