--- title: renderMatches --- # renderMatches [MODES: framework, data, declarative] ## Summary [Reference Documentation ↗](https://api.reactrouter.com/v7/functions/react_router.renderMatches.html) Renders the result of [`matchRoutes`](../utils/matchRoutes) into a React element. ## Signature ```tsx function renderMatches( matches: RouteMatch[] | null, ): React.ReactElement | null ``` ## Params ### matches The array of [route matches](https://api.reactrouter.com/v7/interfaces/react_router.RouteMatch.html) to render ## Returns A React element that renders the matched routes or `null` if no matches