-
In the address book tutorial, the following layout is defined. export default [
layout("layouts/sidebar.tsx", [
index("routes/home.tsx"),
route("contacts/:contactId", "routes/contact.tsx"),
]),
route("about", "routes/about.tsx"),
] satisfies RouteConfig; Can I achieve the same routing setup using a file-based routing configuration? Specifically, I am unsure how to define a layout that is shared between the root route and the contacts/:contactId route. |
Beta Was this translation helpful? Give feedback.
Answered by
sergiodxa
Jan 20, 2025
Replies: 2 comments
-
Something like that |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
m-haketa
-
Thank you very much! It worked. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Something like that