@redneckz/microfront-core
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

@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

Readme

Keywords

Package Sidebar

Install

npm i @redneckz/microfront-core

Weekly Downloads

64

Version

1.0.3

License

MIT

Unpacked Size

98.8 kB

Total Files

61

Last publish

Collaborators

  • redneckz