1
0
mirror of https://github.com/yldio/copilot.git synced 2024-12-01 07:30:07 +02:00
copilot/frontend/src/root.js
2016-10-24 14:11:50 +01:00

39 lines
725 B
JavaScript

const React = require('react');
const ReactIntlRedux = require('react-intl-redux');
const ReactHotLoader = require('react-hot-loader');
const ReactRedux = require('react-redux');
const ReactRouter = require('react-router');
const App = require('./containers/app');
const store = require('./state/store');
const {
IntlProvider
} = ReactIntlRedux;
const {
AppContainer
} = ReactHotLoader;
const {
Provider
} = ReactRedux;
const {
BrowserRouter
} = ReactRouter;
module.exports = () => {
return (
<AppContainer>
<Provider store={store()}>
<IntlProvider>
<BrowserRouter>
{App}
</BrowserRouter>
</IntlProvider>
</Provider>
</AppContainer>
);
};