2021-04-12 13:32:25 +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.
|
2021-04-12 13:32:25 +00:00
|
|
|
import "core-js/stable";
|
|
|
|
import "regenerator-runtime/runtime";
|
2021-02-25 12:05:08 +00:00
|
|
|
|
2021-04-12 13:32:25 +00:00
|
|
|
import "./public-path";
|
|
|
|
import routes from "./router";
|
|
|
|
import "./index.scss";
|
2016-09-07 00:04:02 +00:00
|
|
|
|
2021-04-12 13:32:25 +00:00
|
|
|
if (typeof window !== "undefined") {
|
2016-09-07 00:04:02 +00:00
|
|
|
const { document } = global;
|
2021-04-12 13:32:25 +00:00
|
|
|
const app = document.getElementById("app");
|
2016-09-07 00:04:02 +00:00
|
|
|
|
2016-09-07 20:07:45 +00:00
|
|
|
ReactDOM.render(routes, app);
|
2016-09-07 00:04:02 +00:00
|
|
|
}
|