fleet/frontend/index.jsx
2026-04-10 09:30:04 -05:00

18 lines
453 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";
import { initTheme } from "./utilities/theme";
if (typeof window !== "undefined") {
initTheme();
const { document } = global;
const app = document.getElementById("app");
const root = createRoot(app);
root.render(routes);
}