Next.js · Junior · Question 3 of 75
How do you create a page at /about in the App Router?
- ✓Correct answer: Create
app/about/page.tsxwith a default-exported component - 2Create
app/about.tsxwith a named exportPage - 3Add an
/aboutroute to theroutessection ofnext.config.ts
Explanation
A route is defined by a folder, and a page.tsx (or .js) file makes it a public page. Without page, the folder isn't reachable by URL - you can keep components in it (colocation). There's no route configuration in next.config. A pages/about.tsx file is the old Pages Router convention.