Components

Route

Edit this page

Route is the component used when defining the routes of an application. This component is used to define the structure of the application and the components that will be rendered for each route.

path

Type: string | string[]

Path partial for defining the route segment.

component

Type: Component

Component that will be rendered for the matched segment.

matchFilters

Type: MatchFilters

Additional constraints for matching against the route.

children

Type: JSX.Element

Nested <Route> definitions.

preload

Type: RoutePreloadFunc

Function called during preload or when the route is navigated to.

Report an issue with this page