@mibjs/plugin-mf
v2.10.2
Published
@mibjs/plugin-mf
Downloads
17
Readme
@mibjs/plugin-mf
@mibjs/plugin-mf.
Install
Using npm:
$ npm install --save-dev @mibjs/plugin-mf
or using yarn:
$ yarn add @mibjs/plugin-mf --dev
Useage
Example
app.tsx
const SSORightContent = React.lazy(() => import('sso/RightContent'));
const RightContent = (props: any) => (
<React.Suspense fallback="Loading...">
<SSORightContent {...props} />
</React.Suspense>
);
export const layout: RunTimeLayoutConfig = ({
initialState,
setInitialState,
}) => {
return {
rightContentRender: () => (
<RightContent
history={history}
initialState={initialState}
setInitialState={setInitialState}
/>
),
};
};
typing.d.ts
declare module 'sso/*';