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

41 lines
773 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;
const store = Store(require('./mock-state.json'));
module.exports = () => {
return (
<AppContainer>
<Provider store={store}>
<IntlProvider>
<BrowserRouter>
{App}
</BrowserRouter>
</IntlProvider>
</Provider>
</AppContainer>
);
};