Ułóż w kolejności · Kurs Next.js · Moduł 2: Routing i layouty

Struktura layout.tsx

Ułóż składnię root layoutu (app/layout.tsx) w App Routerze

Elementy do ułożenia

  • return <html><body>{children}</body></html> }
  • {
  • Layout({ children })
  • export default function
Pokaż odpowiedź

Poprawna kolejność:

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