Docs
useParams
useParams
useParams hook that can be used to get params
Params is an object with route's dynamic params filled in by the current URL.
And useParams
help's with giving you current params.
Read more about dynamic-routing.
Example
Following example uses @tanstack/react-query