nesting order

폴더가 깊어질수록 layout은 바깥에서 안쪽으로 감싸진다

중첩 레이아웃은 수동으로 import해서 감싸는 구조가 아니라, 폴더의 layout.tsx가 부모 layout의 children 자리에 차례로 들어가는 구조다.

URL렌더 순서각 계층의 역할바뀌는 부분
/dashboardRootLayout > DashboardLayout > DashboardPage전역 껍데기와 대시보드 공통 UIDashboardPage
/dashboard/profileRootLayout > DashboardLayout > ProfileLayout > ProfilePage프로필 섹션 메뉴 추가ProfilePage
/dashboard/profile/editRootLayout > DashboardLayout > ProfileLayout > EditPage프로필 레이아웃 유지EditPage
/products/42RootLayout > ProductPage별도 layout이 없으면 바로 pageProductPage
layout.tsx 없음가장 가까운 부모 layout 사용범위가 좁아짐공통 UI가 적용되지 않을 수 있음