Created
January 13, 2019 14:41
-
-
Save BiosBoy/dda932f87d7bbc112a6ded8ed038c55b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { PropTypes } from 'prop-types'; | |
| import React from 'react'; | |
| import { Provider } from 'react-redux'; | |
| import { ConnectedRouter } from 'connected-react-router'; | |
| import CoreLayout from '../layout'; | |
| const AppContainer = ({ store, history }) => { | |
| return ( | |
| <Provider store={store}> | |
| <ConnectedRouter history={history}> | |
| <CoreLayout /> | |
| </ConnectedRouter> | |
| </Provider> | |
| ); | |
| }; | |
| AppContainer.propTypes = { | |
| store: PropTypes.object.isRequired, | |
| history: PropTypes.object.isRequired | |
| }; | |
| export default AppContainer; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment