Version: 5.x
single-spa-dojo
single-spa-dojo is a helper library that helps implement single-spa registered application lifecycle functions (bootstrap, mount and unmount) for use with Dojo. Check out the single-spa-dojo github.
#
Installation#
QuickstartYour bundler's "entry file" should look like this, which allows your application to be downloaded as an in-browser ES module.
#
OptionsAll options are passed to single-spa-dojo via the opts
parameter when calling singleSpaDojo(opts)
. The following options are available:
renderer
(required): Therenderer
function imported from Dojo. See https://dojo.io/learn/creating-widgets/rendering-widgets#rendering-to-the-dom.v
(required): The function used to render dom elements in Dojo. Often JSX hides this function from you, but it can be found atimport { v } from '@dojo/framework/widget-core/d'
.w
(required): The function used to render dom elements in Dojo. Often JSX hides this function from you, but it can be found atimport { w } from '@dojo/framework/widget-core/d'
.appComponent
(required): The class or function for your root Dojo component.mountOptions
(optional): An object of Dojo MountOptions. Note that adomNode
will be provided by single-spa-dojo, if one is not provided.