Next.js is a full-stack React framework. Its App Router organises an application as folders inside an app directory, where special files define pages, shared layouts, loading states and error boundaries. Components are Server Components by default, and you opt into client-side interactivity with the use client directive.
The framework handles routing, server rendering, streaming, code splitting and image and font optimisation. Data can be fetched directly in async Server Components, and mutations are handled with Server Functions. Caching behaviour has changed between major versions, so read the documentation for the version you use.



