@redneckz/microfront-core
Microfrontend Core Library
Installation
$ npm install --save @redneckz/microfront-core
or:
$ yarn add @redneckz/microfront-core
Usage
Micro Frontend Listeners
You can register state listener at any point bound to micro frontend zone
in your code:
import { addMicroFrontListener } from '@redneckz/microfront-core';
addMicroFrontListener('fetched', ({ name }) => { ... });
addMicroFrontListener('bootstrapped', ({ name }) => { ... });
addMicroFrontListener('mounted', ({ name }) => { ... });
addMicroFrontListener('unmounted', ({ name }) => { ... });
addMicroFrontListener('style_fetched', ({ style }) => { ... });
addMicroFrontListener('style_mounted', ({ style }) => { ... });