You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
580 B
28 lines
580 B
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
|
|
|