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
Client Component Hooks
Next.js provides a number of hooks for accessing routing information from client components.
Try navigating each page and observing the output of each hook called from the current routes
layout.js
and
page.js
files.
Docs
Code
By
View code
or
check api reference