mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 00:45:19 +00:00
17 lines
391 B
JavaScript
17 lines
391 B
JavaScript
import { createRoot } from "react-dom/client";
|
|
|
|
// used for babel polyfills.
|
|
import "core-js/stable";
|
|
import "regenerator-runtime/runtime";
|
|
|
|
import "./public-path";
|
|
import routes from "./router";
|
|
import "./index.scss";
|
|
|
|
if (typeof window !== "undefined") {
|
|
const { document } = global;
|
|
const app = document.getElementById("app");
|
|
const root = createRoot(app);
|
|
root.render(routes);
|
|
}
|