Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 1.63 KB

File metadata and controls

50 lines (36 loc) · 1.63 KB

@redneckz/microfront-core

Microfrontend Core Library

NPM Version Build Status Coverage Status Bundle size

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 }) => { ... });

License

MIT