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:
parent
0d6b5b627d
commit
4281407723
12
ui/index.js
12
ui/index.js
@ -1,5 +1,5 @@
|
||||
import React from 'react'
|
||||
const render = require('react-dom').render
|
||||
const h = require('react-hyperscript')
|
||||
const Root = require('./app/pages')
|
||||
const actions = require('./app/store/actions')
|
||||
const configureStore = require('./app/store/store')
|
||||
@ -96,11 +96,11 @@ async function startApp (metamaskState, backgroundConnection, opts) {
|
||||
|
||||
// start app
|
||||
render(
|
||||
h(Root, {
|
||||
// inject initial state
|
||||
store: store,
|
||||
}
|
||||
), opts.container)
|
||||
<Root
|
||||
store={store}
|
||||
/>,
|
||||
opts.container,
|
||||
)
|
||||
|
||||
return store
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user