1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

Convert the Root component to using JSX (#7532)

This commit is contained in:
Whymarrh Whitby 2019-11-23 07:06:32 -03:30 committed by GitHub
parent 0d6b5b627d
commit 4281407723
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
import React from 'react'
const render = require('react-dom').render const render = require('react-dom').render
const h = require('react-hyperscript')
const Root = require('./app/pages') const Root = require('./app/pages')
const actions = require('./app/store/actions') const actions = require('./app/store/actions')
const configureStore = require('./app/store/store') const configureStore = require('./app/store/store')
@ -96,11 +96,11 @@ async function startApp (metamaskState, backgroundConnection, opts) {
// start app // start app
render( render(
h(Root, { <Root
// inject initial state store={store}
store: store, />,
} opts.container,
), opts.container) )
return store return store
} }