13 lines
306 B
TypeScript
13 lines
306 B
TypeScript
import { StrictMode } from "react";
|
|
import { createRoot } from "react-dom/client";
|
|
import App from "./App";
|
|
import "./app.css";
|
|
|
|
const root = document.getElementById("root");
|
|
if (!root) throw new Error("Missing React root element");
|
|
|
|
createRoot(root).render(
|
|
<StrictMode>
|
|
<App />
|
|
</StrictMode>,
|
|
);
|