Route Groups and Nested Layouts
Organize complex App Router projects using route groups, nested layouts, and template files for shared and per-section UI.
Why Organization Matters
As an app grows, the App Router lets you structure folders for shared UI without affecting the URL. Route groups and nested layouts are the main tools.
Nested Layouts Recap
Each folder can have a layout.tsx. Layouts nest: a section layout wraps its pages while the root layout wraps everything.
export default function DashboardLayout({ children }) {
return (<section><nav>Dashboard nav</nav>{children}</section>);
}All lessons in this course
- Layouts and Page Components
- Dynamic Routes & Params
- Loading & Error UI
- Route Groups and Nested Layouts