1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-15 07:40:07 +02:00
copilot/frontend/src/index.js

28 lines
635 B
JavaScript
Raw Normal View History

2017-02-24 14:13:10 +02:00
import { IntlProvider } from 'react-intl-redux';
import { BrowserRouter } from 'react-router-dom';
import { Provider } from 'react-redux';
import a11y from 'react-a11y';
import ReactDOM from 'react-dom';
import React from 'react';
2017-02-24 14:13:10 +02:00
import App from '@containers/app';
import MockState from './mock-state.json';
import Store from '@state/store';
2016-10-20 04:14:26 +03:00
2016-10-25 22:36:05 +03:00
if (process.env.NODE_ENV !== 'production') {
a11y(React, {
ReactDOM
});
}
ReactDOM.render(
2017-02-24 14:13:10 +02:00
<Provider store={Store(MockState)}>
<IntlProvider>
<BrowserRouter>
<App />
</BrowserRouter>
</IntlProvider>
</Provider>,
document.getElementById('root')
);