Next.js
A React framework for production.
Next.js layers routing, data fetching, server-side rendering, static-site generation, image optimisation, API routes, and incremental static regeneration on top of React. The pages/ or app/ directory structure provides file-system-based routing, and the same components can render on the server, on the edge, or in the browser depending on a small set of opt-in directives.
Vercel started Next.js in 2016 (then ZEIT) to support its hosting platform. The framework has gone through major architectural shifts — most recently the move to the App Router and React Server Components in Next.js 13 — that have at times been controversial in the React community. The MIT licence and broad ecosystem keep the project central to React development nonetheless.
Next.js is the default React framework for new projects today. It hosts a substantial fraction of large React-based sites, particularly e-commerce and marketing sites where SSR and static generation matter for performance and SEO. Vercel hosts Next.js sites with first-class support, but the framework runs fine on any Node.js host.
Install
npx create-next-app@latest my-app
Authors
- Vercel and the Next.js team