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/hooks/use-params