App Router
on
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
Client Component Hooks
CSS and CSS-in-JS
Code Snippets
By
Adapted by
Adam
View code
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
Adapted by
Adam
View code