main.tsx 250 Bytes
import React from "react";
import { createRoot } from "react-dom/client";

import App from "./App";

const container = document.querySelector("#root");
if (!container) throw new Error("Root element not found");
createRoot(container).render(<App />);