Next.js & App Router (50 Qs)•Part 2: Core Architecture & Implementation (Mid-Level)
Route Groups (`(folder)`) and Multiple Root Layouts.
senior LevelSystem Design
In Simple Words:
Wrapping a directory name in parentheses: app/(marketing) or app/(dashboard) organizes routes logically without affecting the URL path:
app/(marketing)/about/page.tsx->/about(NOT/marketing/about).- Enables creating completely distinct root layouts (e.g. a public marketing layout with navbar and footer, vs an authenticated dashboard layout with sidebar).