What's the best way to create multiple layouts that only some routes use?

I need to have multiple layouts. I'd like some pages to use different layouts, rather than a single universal layout.
1 Reply
BlackCaesar
BlackCaesar2y ago
You can group routes in a folder whose name is surrounded by parentheses. The parentheses make it so the folder name isn't part of the route structure. Then you can make your layout in a tsx/jsx file with the same name as the folder above.
Want results from more Discord servers?
Add your server