Replies: 7 comments
-
Maybe it makes sense to bring back the old |
Beta Was this translation helpful? Give feedback.
-
Just for those who don't know it: what is the secret menu in v6? |
Beta Was this translation helpful? Give feedback.
-
That's where you can get React Router in Animal Style, Protein Style, or get it 4x4. |
Beta Was this translation helpful? Give feedback.
-
So the secret menu is adding |
Beta Was this translation helpful? Give feedback.
-
It's essentially the Reach Router API for React Router v6, where you can use any component you want instead of a It's problematic when you're using TypeScript, because now you have to add |
Beta Was this translation helpful? Give feedback.
-
We discussed this internally and decided it's probably not the direction we want to go right now. Instead of implementing standalone |
Beta Was this translation helpful? Give feedback.
-
What is the new or updated feature that you are suggesting?
We should make it easy to render a standalone
<Route>
without requiring it to be wrapped in a<Routes>
. This mirrors functionality we currently have in v5.Unfortunately this probably means we will have to get rid of the secret menu in v6, but that's hard to type anyway. Reach Router users will have to modify their route config to use real
<Route>
components instead of sending<Route>
-specific props to their own components.Why should this feature be included?
This will make it easier for people to upgrade from v5.
Beta Was this translation helpful? Give feedback.
All reactions