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