App Router
(Beta)
Menu
Layouts
Nested Layouts
Grouped Layouts
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
View code
or
deploy your own
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
deploy your own