index.js 707 B

12345678910111213141516171819202122
  1. import React from 'react';
  2. import ReactDOM from 'react-dom';
  3. import { Provider } from 'react-redux'
  4. import configureStore from './store';
  5. import './index.css';
  6. import App from './containers/App/App';
  7. import * as serviceWorker from './containers/App/serviceWorker';
  8. import { BrowserRouter as Router } from 'react-router-dom';
  9. ReactDOM.render(
  10. <Provider store={configureStore()}>
  11. <Router>
  12. <App />
  13. </Router>
  14. </Provider>,
  15. document.getElementById('root')
  16. );
  17. // If you want your app to work offline and load faster, you can change
  18. // unregister() to register() below. Note this comes with some pitfalls.
  19. // Learn more about service workers: http://bit.ly/CRA-PWA
  20. serviceWorker.unregister();