UNPKG

mfe-react

Version:

React Micro-Frontend Component Wrapper

1 lines 659 B
"use strict";(self.webpackChunk_mfe_react_mfe=self.webpackChunk_mfe_react_mfe||[]).push([[619],{619:(t,e,n)=>{n.r(e),n.d(e,{default:()=>o});const o={bootstrap:()=>{console.log("bootstrap: Plain javascript MFE is ready to mount")},mount:({domElement:t,...e})=>{console.log("mount: Plain javascript MFE is mounted"),console.log(e),t.innerHTML="Plain Javascript MFE. Press any increment counter button to update this MFE with new value."},unmount:()=>{console.log("unmount: Plain javascript MFE is unmounted")},update:({domElement:t,...e})=>{console.log("update: Plain javascript MFE is being updated");let n=e.count;t.innerHTML=`Updated with count: ${n}`}}}}]);