Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 409 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 409 Bytes

single-spa-iframes

A Workaround to use microfrontends with single-spa

Use example

  const iframeLifeCycles = singleSpaIframes({
    baseUrl: 'http://localhost:2910/#',
    elGetter() {
      return document.getElementById('easyApp')
    }
  })

  export const bootstrap = iframeLifeCycles.bootstrap
  export const mount = iframeLifeCycles.mount
  export const unmount = iframeLifeCycles.unmount