26 lines
644 B
TypeScript
26 lines
644 B
TypeScript
import { StrictMode } from "react";
|
|
import { createRoot } from "react-dom/client";
|
|
|
|
if (!crypto.randomUUID) {
|
|
crypto.randomUUID = () =>
|
|
"10000000-1000-4000-8000-100000000000".replace(/[018]/g, (c) =>
|
|
(
|
|
+c ^
|
|
(crypto.getRandomValues(new Uint8Array(1))[0] & (15 >> (+c / 4)))
|
|
).toString(16),
|
|
) as `${string}-${string}-${string}-${string}-${string}`;
|
|
}
|
|
|
|
import "./index.css";
|
|
import { App } from "./app/app";
|
|
|
|
const rootElement = document.getElementById("root");
|
|
if (!rootElement) {
|
|
throw new Error("Root element not found");
|
|
}
|
|
|
|
createRoot(rootElement).render(
|
|
<StrictMode>
|
|
<App />
|
|
</StrictMode>,
|
|
);
|