app.js 732 B

12345678910111213141516171819202122232425262728293031
  1. /**
  2. * React Static Boilerplate
  3. * https://github.com/koistya/react-static-boilerplate
  4. *
  5. * Copyright © 2015-2016 Konstantin Tarkus (@koistya)
  6. *
  7. * This source code is licensed under the MIT license found in the
  8. * LICENSE.txt file in the root directory of this source tree.
  9. */
  10. import 'babel-polyfill';
  11. import 'whatwg-fetch';
  12. import { createApp } from 'react-app';
  13. import store from './store';
  14. import routes from '../routes';
  15. createApp({
  16. routes,
  17. context: { store },
  18. container: document.getElementById('container'),
  19. });
  20. // if (module.hot) {
  21. // module.hot.accept(() => {
  22. // createApp({
  23. // routes,
  24. // context: { store },
  25. // container: document.getElementById('container'),
  26. // });
  27. // });
  28. // }