Replies: 1 comment 1 reply
-
If want to have a route nested inside another you need this setup
The parent is a created as usual and the nested is inside a folder of the same name of the parent. Creating and index.tsx inside the folder will match at the /parent url, and the rest will match at /parent/child. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Example routes:
I need to create
items/index.tsx
asitems.tsx
for thecreate.tsx
to be considered as child route.I know you can place route modules as siblings for not sharing layout, but I wonder if this behavior for
index
is intentional.Beta Was this translation helpful? Give feedback.
All reactions