mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 02:10:12 +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 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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user