Skip to main content

renderMatches

还没翻译译自英文(reactrouter.com)本页 13 段都还没译

renderMatches

Framework Data Declarative

Summary

Reference Documentation ↗

Renders the result of matchRoutes into a React element.

Signature

function renderMatches(
  matches: RouteMatch[] | null,
): React.ReactElement | null

Params

matches

The array of route matches to render

Returns

A React element that renders the matched routes or null if no matches

Traducción © 2026 fanyi.dev · Original © 2026 React Training LLC, Remix Software Inc., Shopify Inc. (MIT)