Loading Depth Study
Preparing your workspace
Layouts persist shared UI across related routes, while route groups organize routes without changing their public URL structure.
A root layout can contain global HTML, fonts, and application-level UI. Nested layouts can provide section-specific navigation such as a student dashboard sidebar or an admin navigation bar. Route groups use parentheses in folder names to organize code without adding that folder name to the URL. These features help large applications keep shared UI and route-specific concerns organized.
A learning platform can have one layout for public pages, another for the student portal, and another for the admin portal.
app/
(public)/
courses/
page.tsx
(student)/
dashboard/
layout.tsx
page.tsx
(admin)/
admin/
layout.tsx
users/
page.tsxThe application separates public, student, and admin UI structures while keeping route URLs clean.