The useRouteParams hook is used to retrieve the parameters of the currently active route.
useRouteParams
The type of the route parameters.
The type of the switch items.
Array of route items.
The history object to track route changes.
The
useRouteParamshook is used to retrieve the parameters of the currently active route.