matchPath

external fun matchPath(pattern: PathPattern, pathname: String): PathMatch?(source)
external fun matchPath(pattern: String, pathname: String): PathMatch?(source)

Performs pattern matching on a URL pathname and returns information about the match.

See also

https

://reactrouter.com/v6/utils/match-path