aboutsummaryrefslogblamecommitdiffstats
path: root/ui/app/root.js
blob: 64f365c9e4182b76e399856db95453d59389387c (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                           
                                      
                                           
                                                  
 


                                
 










                              
 

                          
 

                     
const { Component } = require('react')
const PropTypes = require('prop-types')
const { Provider } = require('react-redux')
const h = require('react-hyperscript')
const SelectedApp = require('./select-app')
const { HashRouter } = require('react-router-dom')

class Root extends Component {
  render () {
    const { store } = this.props

    return (
      h(Provider, { store }, [
        h(HashRouter, {
          hashType: 'noslash',
        }, [
          h(SelectedApp),
        ]),
      ])
    )
  }
}

Root.propTypes = {
  store: PropTypes.object,
}

module.exports = Root