This package has been deprecated

Author message:

use nextjs and alp-nextjs instead

alp-browser
TypeScript icon, indicating that this package has built-in type declarations

4.0.5 • Public • Published

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();
});

Package Sidebar

Install

npm i alp-browser

Weekly Downloads

4

Version

4.0.5

License

ISC

Unpacked Size

41.5 kB

Total Files

17

Last publish

Collaborators

  • churpeau