Skip to main content
InterviewHubPRO
Section Overview
Q2

Question 2 of 50

Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

4%
Next.js & App Router (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

What are the key differences between the App Router (`app/`) and the legacy Pages Router (`pages/`)?

junior LevelRouting

In Simple Words:

FeatureLegacy Pages Router (pages/)Modern App Router (app/)
Component ModelEverything is a Client ComponentComponents are Server Components by default
Data FetchinggetServerSideProps, getStaticPropsNative async/await in components & fetch()
LayoutsCustom _app.js and _document.jsNested, co-located layout.tsx files
Streaming & LoadingManual spinner stateNative <Suspense> and loading.tsx
MutationsCustom API routes (pages/api/*)First-class Server Actions ('use server')
Bundle SizeLarger (React runtime on client)Smaller (Server components ship 0KB JS)