Next@13 App Directory 예제
Menu
Layouts
Nested Layouts
Grouped Layouts
File Conventions
loading.js
error.js
head.js
Data Fetching
Static-Site Generation
Server-Side Rendering
Incremental Static Regeneration
Streaming with Suspense
Components
Client context
Styles
CSS and CSS-in-JS
Server Action
form action
form action with data
form action with useTransition
Home
users
todos
hello
Route Groups
라우팅 그룹은 URL 구조에 영향을 주지 않으면서, 주소에 따라 서로다른 레이아웃을 적용할 수 있는 방법이다.
만약 대표 루트 URL 페이지가 선언되어 있지 않다면 `(main)`을 해당 페이지의 루트로 간주하여 라우팅한다.
서로 다른 탭을 네비게이션 해보면, 주소에는 영향이 없지만 주소에 따라서 서로 다른 레이아웃을 적용할 수 있다는 것을 알 수 있다.