@portal-dx/plugin-medium-feed
List the feed of a user on Backstage
This plugin was created through the Backstage CLI
Requirements
Use
On App.tsx:
import { MediumFeedProvider } from '@portal-dx/plugin-medium-feed'
[...]
export default app.createRoot(
<AppRouter>
<MediumFeedProvider user="your-user-here">
[...]
</MediumFeedProvider>
<AppRouter />
);
On routes.tsx or Root.tsx:
packages/app/src/routes.tsx
import { MediumFeedPage } from '@portal-dx/plugin-medium-feed'
[...]
const routes = (
<FlatRoutes>
[...]
<Route path="/medium" element={<MediumFeedPage />} />
</FlatRoutes>
);
On HomePage.tsx or any other page:
packages/app/src/pages/HomePage.tsx
import { MediumFeedHomeWidget } from '@portal-dx/plugin-medium-feed';
[...]
export const HomePage = () => {
return (
[...]
<Grid item xs={12} md={6}>
<MediumFeedHomeWidget />
</Grid>
);
};
Developed with ❤️ by the MadeiraMadeira DX Junior Team