brat-frontend-editor
Version:
"BRAT Editor standalone frontend library"
26 lines (21 loc) • 606 B
JavaScript
import React, { Component, PropTypes } from 'react'
import { Router } from 'react-router'
import { Provider } from 'react-redux'
class AppContainer extends Component {
static propTypes = {
history : PropTypes.object.isRequired,
routes : PropTypes.object.isRequired,
store : PropTypes.object.isRequired
}
render () {
const { history, routes, store } = this.props
return (
<Provider store={store}>
<div style={{ height: '100%' }}>
<Router history={history} children={routes} />
</div>
</Provider>
)
}
}
export default AppContainer