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ść:
- export default function
- Layout({ children })
- {
- return <html><body>{children}</body></html> }