@portal-dx/plugin-medium-feed
v1.0.7
Published
List the feed of a user on Backstage
Downloads
5
Readme
@portal-dx/plugin-medium-feed
List the feed of a user on Backstage
This plugin was created through the Backstage CLI
Requirements
- Backstage Project;
- Node.js v16.14.x
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