Skip to main content
Version: Next

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

FlatRoutesProps

**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.