2016-04-14 00:28:44 +02:00
|
|
|
const inherits = require('util').inherits
|
|
|
|
const Component = require('react').Component
|
|
|
|
const Provider = require('react-redux').Provider
|
|
|
|
const h = require('react-hyperscript')
|
2017-11-14 17:04:55 +01:00
|
|
|
const SelectedApp = require('./select-app')
|
2016-04-14 00:28:44 +02:00
|
|
|
|
|
|
|
module.exports = Root
|
|
|
|
|
|
|
|
inherits(Root, Component)
|
2016-06-21 22:18:32 +02:00
|
|
|
function Root () { Component.call(this) }
|
2016-04-14 00:28:44 +02:00
|
|
|
|
2016-06-21 22:18:32 +02:00
|
|
|
Root.prototype.render = function () {
|
2016-04-14 00:28:44 +02:00
|
|
|
return (
|
2016-06-21 22:18:32 +02:00
|
|
|
|
2016-04-14 00:28:44 +02:00
|
|
|
h(Provider, {
|
|
|
|
store: this.props.store,
|
|
|
|
}, [
|
2017-11-14 17:04:55 +01:00
|
|
|
h(SelectedApp),
|
2016-04-14 00:28:44 +02:00
|
|
|
])
|
|
|
|
|
|
|
|
)
|
|
|
|
}
|