Skip to content

A Workaround to use microfrontends iframe with single-spa

Notifications You must be signed in to change notification settings

ambitus-it/single-spa-iframes

Repository files navigation

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

About

A Workaround to use microfrontends iframe with single-spa

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published