diff --git a/src/single-spa-preact.js b/src/single-spa-preact.js index b7c8284..bfbdb37 100644 --- a/src/single-spa-preact.js +++ b/src/single-spa-preact.js @@ -38,10 +38,10 @@ function bootstrap(opts) { return Promise.resolve(); } -function mount(opts) { +function mount(opts, props) { return new Promise((resolve, reject) => { opts.renderedNode = opts.preact.render( - opts.preact.h(opts.rootComponent, null, null), + opts.preact.h(opts.rootComponent, props, null), getRootDomEl(opts), );