diff options
Diffstat (limited to 'ui/app/root.js')
-rw-r--r-- | ui/app/root.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ui/app/root.js b/ui/app/root.js new file mode 100644 index 000000000..9fedf625f --- /dev/null +++ b/ui/app/root.js @@ -0,0 +1,24 @@ +const inherits = require('util').inherits +const React = require('react') +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) +function Root() { Component.call(this) } + +Root.prototype.render = function() { + return ( + + h(Provider, { + store: this.props.store, + }, [ + h(App) + ]) + + ) +} |