Type something to search...

Blog

Next.js layout.js

Next.js layout.js

layout.js is the outermost wrapper in a route segment's component hierarchy — it sits above template.js, error.js, loading.js, not-found.js

Dive Deeper
Next.js Layouts and Pages

Next.js Layouts and Pages

Every React project eventually asks the same question: how do URLs map to components? In the Pages Router, the answer was a flat mapping between a fi

Dive Deeper
Next.js Lazy loading Client Components and libraries

Next.js Lazy loading Client Components and libraries

Every component you ship, every library you import, every icon set you pull in — all of it has to travel down the wire before a browser can do anythi

Dive Deeper
Next.js Link Component

Next.js Link Component

Every Next.js app eventually comes down to one question: how does a visitor get from page A to page B without the whole browser reloading? The answer

Dive Deeper
Next.js Linking and Navigating

Next.js Linking and Navigating

Every route in the Next.js App Router is rendered on the server by default. That single fact explains almost everything interesting about how navigat

Dive Deeper
Next.js Loading and optimizing scripts

Next.js Loading and optimizing scripts

A plain <script src="..."> tag is one of the easiest ways to quietly wreck a page's performance, because the browser's default behavior for it is a

Dive Deeper