What Is Next.js and When Should You Use It?
Next.js is a React framework for building full-stack web applications. Learn what it adds on top of React and when it is the right choice for a project.
Full-stack React framework
Next.js is a React framework for building full-stack web applications. Learn what it adds on top of React and when it is the right choice for a project.
React is a library for building user interfaces. Next.js adds routing, server rendering, data fetching, and build tooling on top of it.
Next.js has two routers. Learn how the App Router and Pages Router differ and which one to choose for a new project in 2026.
Next.js turns folders inside app into URLs. Learn how nesting, page files, and layouts combine to build your app's routes.
A dynamic route lets one folder match many URLs. Learn how bracketed folder names capture values and how to prerender them ahead of time.
Parallel routes render more than one page in the same layout at once, each with its own loading and error state. Learn the @slot convention.
Intercepting routes load one route inside the current layout while masking the URL, which is what lets a photo open as a modal instead of a new page.
Layouts cannot pass data to the pages they wrap, and pages cannot pass data up to a layout. Learn the real patterns for sharing data between them.
useRouter is a client-side hook for event handlers, and redirect is a server-side function that interrupts rendering. Learn which one fits which situation.
useSelectedLayoutSegment reads which route segment is active one level below a layout, which makes it a natural fit for highlighting an active nav link.
useLinkStatus tells a component inside a Link whether that navigation is still pending, which is how you show a loading indicator on a slow link.
Pass props from a Server Component to a Client Component by keeping every value serializable. See a working example, plus how to stream a Promise prop with the use API.