The App Router
The App Router uses a folder-based routing system inside the app directory. Each folder represents a route segment, and special files like page.tsx and layout.tsx define UI and shared structure. This outline is in progress — expect a short read until full lessons ship.
Check your understanding
Name two special files in an App Router segment.Show answerHide answer
Answer
Common ones: page.tsx (UI for the route) and layout.tsx (shared wrapper for nested segments).Where do App Router routes live?Show answerHide answer
Answer
Inside the app directory, with folders mapping to URL path segments.