github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/blockapps-ba-master/ui/src/index.js (about)

     1  import React from 'react';
     2  import ReactDOM from 'react-dom';
     3  import { Router, browserHistory } from 'react-router';
     4  import routes from './routes';
     5  import { Provider } from 'react-redux';
     6  import { syncHistoryWithStore } from 'react-router-redux';
     7  import configureStore from './configureStore';
     8  import './index.css';
     9  import { IntlProvider } from 'react-intl'
    10  
    11  const store = configureStore();
    12  const history = syncHistoryWithStore(browserHistory, store);
    13  
    14  ReactDOM.render(
    15    <Provider store={store}>
    16      <IntlProvider locale="en">
    17        <Router history={history} routes={routes} />
    18      </IntlProvider>
    19    </Provider>,
    20    document.getElementById('root')
    21  );