DEV Community

Discussion on: Remix: Sharing Your Index Layout with Sub-Routes

Collapse
 
ryanflorence profile image
Ryan Florence

Any reason you didn't use root.tsx?

Collapse
 
pckilgore profile image
Patrick Kilgore

Simplified example above, but some of the other pages don't share that layout. Putting layout in the root was causing it to show up everywhere. I miss something?

Collapse
 
jgb profile image
Jean Gérard Bousiquot

@pckilgore Yes I'm in the same situation now. The login page has its own layout. Thanks for this tutorial!

@ryanflorence thanks for Remix. It's awesome!