2016-09-07 20:07:45 +00:00
|
|
|
import ReactDOM from 'react-dom';
|
2016-10-19 20:22:18 +00:00
|
|
|
|
2021-02-25 12:05:08 +00:00
|
|
|
// used for babel polyfills.
|
|
|
|
import 'core-js/stable';
|
|
|
|
import 'regenerator-runtime/runtime';
|
|
|
|
|
2019-10-16 23:40:45 +00:00
|
|
|
import './public-path';
|
2016-09-07 00:04:02 +00:00
|
|
|
import routes from './router';
|
2016-09-23 18:04:01 +00:00
|
|
|
import './index.scss';
|
2016-09-07 00:04:02 +00:00
|
|
|
|
|
|
|
if (typeof window !== 'undefined') {
|
|
|
|
const { document } = global;
|
|
|
|
const app = document.getElementById('app');
|
|
|
|
|
2016-09-07 20:07:45 +00:00
|
|
|
ReactDOM.render(routes, app);
|
2016-09-07 00:04:02 +00:00
|
|
|
}
|