matchRoutes

Matches the given routes to a location and returns the match data.

See also

https

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