add domNode parameter

This commit is contained in:
oysteinsigholt
2017-08-01 11:11:10 +02:00
parent 6b1d78c6a6
commit 230f4a8467
3 changed files with 15 additions and 5 deletions

View File

@@ -58,8 +58,7 @@ export const makeMappedContainer = (getSystem, getStore, memGetComponent, getCom
}
export const render = (getSystem, getStore, getComponent, getComponents, dom) => {
let domNode = document.querySelector(dom)
export const render = (getSystem, getStore, getComponent, getComponents, domNode) => {
let App = (getComponent(getSystem, getStore, getComponents, "App", "root"))
ReactDOM.render(( <App/> ), domNode)
}