1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 10:30:04 +01:00
metamask-extension/ui/app/root.js

23 lines
433 B
JavaScript
Raw Normal View History

const inherits = require('util').inherits
const Component = require('react').Component
const Provider = require('react-redux').Provider
const h = require('react-hyperscript')
const App = require('./app')
module.exports = Root
inherits(Root, Component)
2016-06-21 22:18:32 +02:00
function Root () { Component.call(this) }
2016-06-21 22:18:32 +02:00
Root.prototype.render = function () {
return (
2016-06-21 22:18:32 +02:00
h(Provider, {
store: this.props.store,
}, [
2016-06-21 22:18:32 +02:00
h(App),
])
)
}