diff --git a/docs/plugins/composability.md b/docs/plugins/composability.md index e95a67417b..fb3ed7a981 100644 --- a/docs/plugins/composability.md +++ b/docs/plugins/composability.md @@ -393,24 +393,26 @@ export const myPlugin = createPlugin({ routes: { root: rootRouteRef, details: detailsRouteRef, - } -}) + }, +}); -export const MyPage = plugin.provide(createRoutableExtension({ - component: () => import('./components/MyPage').then(m => m.MyPage), - mountPoint: rootRouteRef, -})) +export const MyPage = plugin.provide( + createRoutableExtension({ + component: () => import('./components/MyPage').then(m => m.MyPage), + mountPoint: rootRouteRef, + }), +); // components/MyPage.tsx const MyPage = () => ( {/* myPlugin.routes.root will take the user to this page */} - }> + } /> {/* myPlugin.routes.details will take the user to this page */} - }> + } /> -) +); ``` ### New Catalog Components