Skip to content

Instantly share code, notes, and snippets.

@BiosBoy
Created January 13, 2019 14:41
Show Gist options
  • Select an option

  • Save BiosBoy/dda932f87d7bbc112a6ded8ed038c55b to your computer and use it in GitHub Desktop.

Select an option

Save BiosBoy/dda932f87d7bbc112a6ded8ed038c55b to your computer and use it in GitHub Desktop.
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