Skip to main content

FlatRoutes()

Home > @backstage/core-app-api > FlatRoutes

A wrapper around a set of routes.

Signature:

function FlatRoutes(props: FlatRoutesProps): JSX.Element | null

Parameters

ParameterTypeDescription
propsFlatRoutesProps

Returns:

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.