Skip to content

[v6] Benefits of useRoutes Hook #8273

Closed Answered by mjackson
rwieruch asked this question in Q&A
Discussion options

You must be logged in to vote

useRoutes() is just a hook that does what <Routes> does. We have this API symmetry in a few other places as well, e.g. useNavigate() and <Navigate>.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mjackson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants