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

Kolejność renderowania komponentów

Ułóż kolejność renderowania komponentów w App Routerze

Elementy do ułożenia

  • layout.js (nested)
  • loading.js
  • page.js
  • layout.js (root)
Pokaż odpowiedź

Poprawna kolejność:

  1. layout.js (root)
  2. layout.js (nested)
  3. loading.js
  4. page.js