#Layout for dynamic params
2 messages · Page 1 of 1 (latest)
Layout routes require a route configuration (_layout.tsx) and a folder/prefixed segment with routes in it.
You can achieve this using a nested or flat file structure.
// nested
src/routes
out-layout.tsx // localhost/out-layout
_layout.tsx
_layout/
in-layout.tsx // localhost/in-layout
// flat
src/routes
out-layout.tsx // localhost/out-layout
_layout.tsx
_layout.in-layout.tsx // localhost/in-layout