TanStackT
TanStack15mo ago
35 replies
wet-aqua

Router layouts inside subdirectory and prefixing

Gut check since I'm mostly brand new to Router and start, when creating a layout for a sub-route, it shows here that you could define it like this to create a Posts layout, is there any way to keep that layout file inside the subdirectory without having to prefix all the other pages inside it such as index and $postId?
Screenshot_2024-10-29_at_7.34.01_PM.png
Was this page helpful?