nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound

AI-powered interview preparation platform. Practice with curated questions, mock interviews, and personalized learning paths to crack your dream tech interview.

Quick Links

  • Technologies
  • Saved Questions
  • Pricing

Company

  • About Us
  • Contact Us

Legal

  • Privacy Policy
  • Terms of Use

© 2026 nextRound. All rights reserved.

TOPIC OVERVIEW

nextjs/Routing

The file-system-based router that turns your folder structure into your app's URLs.

10 QuestionsIntermediateHigh Priority ~11 min read

The App Router maps folders to URL segments, and a nested folder structure automatically produces nested routes. Layouts nest to match that structure, and — critically — a layout persists across navigations between routes that share it, so a shared layout doesn't unmount and remount every time you navigate; only the segment that actually changes re-renders.

Navigation happens through the Link component for declarative links and the useRouter hook for programmatic navigation, both enabling client-side transitions with no full page reload. Next.js automatically code-splits by route and prefetches linked routes that enter the viewport, so by the time a user actually clicks a link, its code is often already loaded — a meaningful step beyond the older Pages Router, which mapped files to routes without any concept of nested, persistent layouts.

What you'll walk away knowing

How nested folders produce nested routes, and how layouts nest and persist to match
Why a shared layout doesn't remount when navigating between routes that both use it
How Link and useRouter enable client-side navigation without a full page reload
What automatic prefetching does for linked routes, and when it happens
1How does the App Router handle layout re-rendering — does a layout re-render when its child route changes?Intermediate2How do Server Actions interact with routing? Can a Server Action trigger a navigation?Intermediate3What is root layout?Intermediate4List some use cases of templates.Intermediate5List all functions available with useRouter hook?Intermediate6What is the hierarchy of all routing files?Intermediate7List hooks related to routing.Intermediate8Discuss <Link> component?Intermediate9How can we nest layouts?Intermediate10How can we navigate between pages?Intermediate11Describe middleware.js.Intermediate12Describe error.js.Intermediate13Describe loading.js.Intermediate14Describe not-found.js.Intermediate15Describe unauthorized.js.Intermediate16Describe template.js.Intermediate17Describe route.js.Intermediate18Describe page.js.Intermediate19Describe layout.js.Intermediate20List important files in app routing system.Intermediate21What is an app router?Intermediate22What is the difference between App router and Page router?Intermediate23How to scroll to an id?Intermediate24Describe default.js.Intermediate
All Topics
1
Basics
Project Structure
Runtime
Compiler
2
SSG
SSR
CSR
3
Routing
Route Handlers
Route Groups
Dynamic Routes
Parallel Routes
Intercepting Routes
4
Middleware
Server Actions
APIS
Data Fetching
Caching
Clients
5
Optimisation
i18n
Security
Architecture
Deployment
Accessibility
Sharethis topic

Share via WhatsApp, X, Facebook, LinkedIn or copy link. Open Graph preview enabled.