App Router
Menu
Layouts
Nested Layouts
Grouped Layouts
Parallel Routes
File Conventions
Loading
Error
Not Found
Data Fetching
Streaming with Suspense
Static Data
Dynamic Data
Incremental Static Regeneration
Components
Client Context
Misc
Patterns
Client Component Hooks
CSS and CSS-in-JS
acme.com
/
Home
Electronics
Clothing
Books
0 Clicks
children
Layouts
A layout is UI that is shared between multiple pages. On navigation, layouts preserve state, remain interactive, and do not re-render. Two or more layouts can also be nested.
Try navigating between categories and sub categories.
Docs
Code
By
View code
or
check api reference