terminal-main.js 577 B

12345678910111213141516171819202122232425
  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';
  7. const store = configureStore();
  8. function renderApp() {
  9. const TerminalApp = require('./components/terminal-app').default;
  10. ReactDOM.render(
  11. (
  12. <Provider store={store}>
  13. <TerminalApp />
  14. </Provider>
  15. ), document.getElementById('app')
  16. );
  17. }
  18. renderApp();
  19. if (module.hot) {
  20. module.hot.accept('./components/terminal-app', renderApp);
  21. }