microspa-js
v0.1.1
Published
> `microspa` is a library that lets you enjoy front-end microservices. microspa is based on [single-spa](https://github.com/CanopyTax/single-spa).
Downloads
4
Readme
microspa
microspa
is a library that lets you enjoy front-end microservices. microspa is based on single-spa.
Install
# npm
npm install microspa-js
# or yarn
yarn add microspa-js
Usage
import { registerApplications, start } from 'microspa-js';
registerApplications([
{
id: 'id of DOM element',
name: 'app name',
entry: 'html entry url',
activityFn: location => {
location.pathname.startsWith('/microspa');
},
},
]);
start();