useResolvedPath

external fun useResolvedPath(to: To, options: UseResolvedPathOptions = definedExternally): Path(source)

Resolves the pathname of the given to value against the current location.

See also

https

://reactrouter.com/hooks/use-resolved-path