Static route segments
A static segment is a named part of a URL that does not vary by input. In the App Router, nested folders and reserved page files define UI routes. A segment folder alone does not create a public page; it needs the appropriate route entry. This lesson assumes no rewrites, base path or special routing conventions.
Map files to public paths
app/ layout.tsx page.tsx catalog/ page.tsx BookCard.tsx help/ page.tsxThe intended UI routes are /, /catalog and /help. BookCard.tsx is a colocated component, not a page at /catalog/BookCard.
Add a nested route
Create app/catalog/new/page.tsx with export default function NewBooks() { return <h1>New books</h1> }. Its URL is /catalog/new; the parent catalog page remains at /catalog. Both are wrapped by applicable layouts. The name NewBooks does not affect the route.
Common mistake
Do not use the Pages Router filename convention index.tsx as the App Router route entry. It does not substitute for page.tsx.
Try it yourself
Map four file paths including an ordinary helper module to their public UI paths, or mark them not a route.
Example status: static walkthrough; Next.js build and browser behavior have not been executed in this authoring environment.