joyent-portal/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>
);
};