Next.js Demos
usePathname
usePathname is a Client Component hook that lets you read the current URL's pathname.
/hooks/usePathname