0.1.1 • Published 5 years ago
microspa-js v0.1.1
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();