--- title: useMatches --- # useMatches [MODES: framework, data] ## Summary [Reference Documentation ↗](https://api.reactrouter.com/v7/functions/react_router.useMatches.html) Returns the active route matches, useful for accessing loaderData for parent/child routes or the route "handle" property ## Signature ```tsx useMatches(): undefined ```