8 lines
241 B
TypeScript
8 lines
241 B
TypeScript
import { createRoot } from "react-dom/client";
|
|
import App from "./App";
|
|
import "./app.css";
|
|
|
|
const root = document.getElementById("root");
|
|
if (root === null) throw new Error("Root element #root not found");
|
|
createRoot(root).render(<App />);
|