FlatRoutes()
Home > @backstage/core-app-api
> FlatRoutes
A wrapper around a set of routes.
Signature:
FlatRoutes: (props: FlatRoutesProps) => JSX.Element | null
Parameters
Parameter |
Type |
Description |
---|---|---|
props |
JSX.Element | null
Remarks
The root of the routing hierarchy in your app should use this component, instead of the one from react-router-dom
. This ensures that all of the plugin route and utility API wiring happens under the hood.