Type something to search...

Blog

Next.js useParams

Next.js useParams

Every dynamic route in the App Router hands its filled-in segments to the matching page.js and layout.js files as a params prop. That works fin

Dive Deeper
Next.js usePathname

Next.js usePathname

Every app eventually needs a component that behaves differently depending on where the user currently is — a nav link that highlights itself when act

Dive Deeper
Next.js userAgent

Next.js userAgent

Every incoming request carries a User-Agent header — a single, dense string like `Mozilla/5.0 (iPhone; CPU iPhone OS 17_4 like Mac OS X) AppleWebKi

Dive Deeper
Next.js useReportWebVitals

Next.js useReportWebVitals

useReportWebVitals is the one hook in the Next.js API surface whose entire job is to hand you a stream of performance measurements as they become a

Dive Deeper
Next.js useRouter

Next.js useRouter

Most navigation in a Next.js app doesn't need any JavaScript at all — you render a <Link>, the framework prefetches it, and clicking it just works.

Dive Deeper
Next.js useSearchParams

Next.js useSearchParams

Every URL in a web app carries two kinds of information: the path, and everything after the ?. Next.js gives you a clean way to read the path (rout

Dive Deeper