docs/frontend-system: update built-in dataref docs for 1.30

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-08-15 21:46:16 +02:00
parent 6d1d1779b1
commit aefe2bd316
@@ -24,18 +24,15 @@ The `reactElement` data reference can be used for defining the extension input/o
```tsx
import {
createExtension,
coreExtensionData,
createExtensionInput,
createPageExtension,
} from '@backstage/frontend-plugin-api';
const homePage = createPageExtension({
defaultPath: '/home',
routeRef: rootRouteRef,
inputs: {
props: createExtensionInput({
children: coreExtensionData.reactElement.optional(),
}),
const examplePage = createExtension({
name: 'example',
output: [coreExtensionData.reactElement],
factor() {
return [coreExtensionData.reactElement(<h1>Example</h1>)];
},
});
```