alp-browser
framework for browser based on ibex
Install
npm install --save alp-browser
Usage
import Alp from 'alp-browser';
const app = new Alp();
app.start(async () => {
// init
await app.init();
// middlewares
app.catchErrors();
if (window.MODULE_IDENTIFIER) {
await app.initialRender(
moduleDescriptors[window.MODULE_IDENTIFIER],
window.initialData,
);
}
await app.run();
});