First local application walkthrough
The smallest conventional App Router project needs a root layout and a page, plus compatible installed dependencies and configuration. This walkthrough uses a preapproved project rather than a floating latest installer. You can reason about the output without running a server.
Two-file page tree
The root layout wraps the page. In an approved project, app/page.tsx supplies the root route content. The layout supplies the document structure.
The root layout and page
Use export default function RootLayout({ children }: { children: React.ReactNode }) { return <html lang="en"><body>{children}</body></html> } in layout.tsx. In page.tsx use export default function Home() { return <main><h1>River Books</h1></main> }. The children prop is the content placed inside the layout. With the scripts from the previous lesson and compatible packages, visit the root URL on the chosen loopback port. Expected heading: River Books.
Common mistake
Do not put a second html or body element in an ordinary page component. The root layout supplies those document-level elements.
Try it yourself
Draw the document tree produced by the two components. If a local setup is approved, compare the visible heading and actual response.
Example status: static walkthrough; Next.js build and browser behavior have not been executed in this authoring environment.