single-spa-riot
Generic lifecycle hooks for Riot.js applications that are registered as applications of single-spa.
Installation
npm install --save single-spa-riot
Usage
;; const riotLifecycles = ; const bootstrap = riotLifecyclesbootstrap; const mount = riotLifecyclesmount; const unmount = riotLifecyclesunmount;
Options
All options are passed to single-spa-riot via the opts
parameter when calling singleSpaRiot(opts)
. The following options are available:
domElementGetter
: (required) the callback to get root component mount element.rootComponent
: (optional and replacesappOptions.loadRootComponent
) the root riot component.loadRootComponent
: (optional and replacesappOptions.rootComponent
) A promise that resolves with your root component. This is useful for lazy loading.