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:

  1. export default function
  2. Layout({ children })
  3. {
  4. return <html><body>{children}</body></html> }