main.dev.js 593 B

1234567891011121314151617181920212223242526
  1. import '@babel/polyfill';
  2. import React from 'react';
  3. import ReactDOM from 'react-dom';
  4. import { Provider } from 'react-redux';
  5. import '../images/favicon.ico';
  6. import configureStore from './stores/configureStore.dev';
  7. import Fonts from './fonts';
  8. const store = configureStore();
  9. function renderApp() {
  10. const App = require('./components/app').default;
  11. ReactDOM.render(
  12. (
  13. <Provider store={store}>
  14. <Fonts />
  15. <App />
  16. </Provider>
  17. ), document.getElementById('app')
  18. );
  19. }
  20. renderApp();
  21. if (module.hot) {
  22. module.hot.accept('./components/app', renderApp);
  23. }