Skip to content
Discussion options

You must be logged in to vote

You want to use pathless layouts. This lets you customize the layout for all its child routes.

https://remix.run/docs/en/main/file-conventions/routes#nested-layouts-without-nested-urls

app/routes
├── _account.tsx            <- layout 
├── _account.login.tsx      /login
├── _account.register.tsx   /register
⏐
├── _default.tsx            <-- layout
├── _default._index.tsx     /
├── _default.about-us.tsx   /about-us
├── _default.contact-us.tsx /contact-us
⏐
├── dashboard.tsx           <-- layout
└── dashboard._index.tsx    /dashboard

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Viewport-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants