-
I want to re-use a component like this: route("products/:productId", "routes/product.tsx"),
route("producers/:producerId/:productId", "routes/product.tsx"), How can I do this in React Router v7? |
Beta Was this translation helpful? Give feedback.
Answered by
sergiodxa
Feb 4, 2025
Replies: 1 comment 1 reply
-
Check https://sergiodxa.com/tutorials/reuse-route-modules-in-react-router |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
TomDeSmet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Check https://sergiodxa.com/tutorials/reuse-route-modules-in-react-router