UNPKG

brat-frontend-editor

Version:
26 lines (21 loc) 606 B
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