Getting Started with Next.js
2026-05-17
Next.jsReact
Next.js is a React framework that enables you to build fast and user-friendly web applications. With the App Router, you can organize your code using a file-system based routing approach.
To get started, create a new project by running `npx create-next-app@latest`. This sets up a new Next.js application with all the defaults configured. You can choose to use TypeScript, ESLint, and other features during setup.
The App Router works by using special files like `page.js` and `layout.js` inside folders. Each folder represents a route segment. For example, `app/about/page.js` creates the `/about` route. This makes it easy to see your application's page structure at a glance.