Custom Root Layout
Unanswered
Transvaal lion posted this in #help-forum
Transvaal lionOP
Hi, I would like to keep my layout.tsx in the app folder for other pages to use. But I would also like to have a different layout for the root page. Are there any workaround for this or will I simply have to have a custom layout for each page
1 Reply
@Transvaal lion Hi, I would like to keep my layout.tsx in the app folder for other pages to use. But I would also like to have a different layout for the root page. Are there any workaround for this or will I simply have to have a custom layout for each page
You can employ "route groups" in the root folder of your app.
app/(layout1)/layout.tsx
app/(layout2)/layout.tsx
app/(layout1)/layout.tsx
app/(layout2)/layout.tsx