T
TanStack6mo ago
flat-fuchsia

How to get type of params of a route?

I want to use the type of route params as component props. How to get them?
1 Reply
rival-black
rival-black6mo ago
you need to use useParams() or Route.useParams()

Did you find this page helpful?