Skip to main content

compatWrapper()

Home > @backstage/core-compat-api > compatWrapper

Wraps a React element in a bidirectional compatibility provider, allow APIs from @backstage/core-plugin-api to be used in an app from @backstage/frontend-app-api, and APIs from @backstage/frontend-plugin-api to be used in an app from @backstage/core-app-api.

Signature:

function compatWrapper(element: ReactNode): React.JSX.Element;

Parameters

Parameter

Type

Description

element

ReactNode

**Returns:**

React.JSX.Element