1
0
mirror of https://github.com/yldio/copilot.git synced 2024-12-12 04:50:06 +02:00
copilot/frontend/src/root.js

39 lines
725 B
JavaScript
Raw Normal View History

2016-10-20 04:14:26 +03:00
const React = require('react');
2016-10-20 22:42:39 +03:00
const ReactIntlRedux = require('react-intl-redux');
2016-10-20 04:14:26 +03:00
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');
2016-10-20 22:42:39 +03:00
const {
IntlProvider
} = ReactIntlRedux;
2016-10-20 04:14:26 +03:00
const {
AppContainer
} = ReactHotLoader;
const {
Provider
} = ReactRedux;
const {
BrowserRouter
} = ReactRouter;
module.exports = () => {
return (
<AppContainer>
<Provider store={store()}>
2016-10-20 22:42:39 +03:00
<IntlProvider>
<BrowserRouter>
{App}
</BrowserRouter>
</IntlProvider>
2016-10-20 04:14:26 +03:00
</Provider>
</AppContainer>
);
};