useParams

external fun useParams(): Params(source)

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

See also

https

://reactrouter.com/v6/hooks/use-params