Put in order · Next.js course · Module 2: Routing and Layouts
layout.tsx Structure
Arrange the syntax of the root layout (app/layout.tsx) in App Router
Items to put in order
- return <html><body>{children}</body></html> }
- {
- Layout({ children })
- export default function
Show the answer
Correct order:
- export default function
- Layout({ children })
- {
- return <html><body>{children}</body></html> }