@storix-js/mfe
v0.1.1
Published
Same-page micro frontend bridge plugin for Storix.
Downloads
193
Readme
@storix-js/mfe
Same-page micro frontend bridge plugin for Storix.
Install
npm install @storix-js/core @storix-js/mfeUsage
import { createStorix } from '@storix-js/core';
import { mfePlugin } from '@storix-js/mfe';
const storix = createStorix({
plugins: [
mfePlugin({ mfeId: 'checkout-mfe', namespaces: ['shell-app'] })
]
});This plugin uses CustomEvent so separately loaded bundles on the same page can exchange store mutations.
