app.js 709 B

123456789101112131415161718192021222324252627282930
  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 { createApp } from 'react-app';
  12. import store from './store';
  13. import routes from '../routes';
  14. createApp({
  15. routes,
  16. context: { store },
  17. container: document.getElementById('container'),
  18. });
  19. // if (module.hot) {
  20. // module.hot.accept(() => {
  21. // createApp({
  22. // routes,
  23. // context: { store },
  24. // container: document.getElementById('container'),
  25. // });
  26. // });
  27. // }