Last active
February 27, 2020 18:57
-
-
Save birendra-b/710de4e226bb902ab05c225ea6adf55d to your computer and use it in GitHub Desktop.
Component Based MicroFrontends
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A virtual class from which all micro-frontends would extend | |
class MicroFrontend { | |
beforeMount() { | |
// do things before the micro front-end mounts | |
} | |
onChange() { | |
// do things when the attributes of a micro front-end changes | |
} | |
render() { | |
// html of the micro frontend | |
return '<div></div>'; | |
} | |
onDismount() { | |
// do things after the micro front-end dismounts | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment