page.tsx
The special file that makes a route segment publicly reachable and holds the content shown at that URL.
In more detail
A page is a Server Component by default, can be async, and receives params and searchParams as Promises in Next.js 15. Without a page.tsx (or route.ts) a folder is not a route.
Related terms
- route — The combination of HTTP method and URL path that a server maps to one handler, such as GET /orders/{id}.
- layout.tsx — The special file that wraps a segment and all its children in shared UI that stays mounted while you navigate between them.
- params — The object holding the values matched by a route's dynamic segments, such as { slug: 'hello' }.
Taught in
- Dynamic Routes: Slugs & generateStaticParams — Next.js 15 & Modern App Router Architecture
- Route Groups & Private Folders: Modular Structures — Next.js 15 & Modern App Router Architecture
- Parallel & Intercepting Routes: Modals & Split Views — Next.js 15 & Modern App Router Architecture
- Loading UI: Instant Loading States with loading.tsx — Next.js 15 & Modern App Router Architecture
- Route Handlers: RESTful Endpoints with NextRequest — Next.js 15 & Modern App Router Architecture
- Runtime Environments: Node.js vs Edge Runtime Choice — Next.js 15 & Modern App Router Architecture