New match
command for react-router
CLI
#14333
rossipedia
started this conversation in
Proposals
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
We can generate the route tree in both JSX and JSON using
react-router routes
, but I think it would immensely helpful, especially for larger projects, to be able to effectively callmatchRoutes
against an arbitrary URL.For example, given the following route structure:
One should be able to do something like this:
Using
--json
should get you more structured output:I think this would be super handy, for both diagnostic and tooling use-cases. Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions