dmf-helper
v1.0.18
Published
`npm install dmf-helper`
Downloads
5
Readme
Usage
npm install dmf-helper
import { DmfRemoteModule } from dmf-helper;
const config = {
remoteUrl: 'remote-module-url', // necessary
scope: 'mf-scope', // necessary
module: 'module-in-mf-scope', // necessary
suspenseFallback: () => <div>loading</div>, // optional but recommended suspense
errorFallback: ErrorFallback, // optional but recommended ErrorView
...restConfig: 'restConfig || component props' // recommended
}
function Home () {
return <>
<DmfRemoteModule {...config} />
</>
}
export default Home