Skip to main content

useParams

useParams<ParamsOrKey>(): Readonly<>

Returns an object of key/value pairs of the dynamic params from the current
URL that were matched by the route path.

Properties

This element is often used without passing props