Version: 5.x
single-spa-inferno
single-spa-inferno is a helper library that helps implement single-spa registered application lifecycle functions (bootstrap, mount and unmount) for for use with Inferno. Check out the single-spa-inferno github.
#
QuickstartFirst, in the application, run npm install --save single-spa-inferno
. Then, add the following to your application's entry file.
#
OptionsAll options are passed to single-spa-inferno via the opts
parameter when calling singleSpaInferno(opts)
. The following options are available:
inferno
: (required) The main Inferno object, which is generally either exposed onto the window or is available viarequire('inferno')
orimport Inferno from 'inferno'
.createElement
: (required) The default export from Inferno'sinferno-create-element
package.rootComponent
: (required) The top level Inferno component which will be rendered.domElementGetter
: (required) A function that takes in no arguments and returns a DOMElement. This dom element is where the Inferno application will be bootstrapped, mounted, and unmounted.