main.tsx 317 B

12345678910111213141516
  1. import { StrictMode } from "react";
  2. import { createRoot } from "react-dom/client";
  3. import { App } from "./App.js";
  4. import "./styles.css";
  5. const root = document.getElementById("root");
  6. if (!root) {
  7. throw new Error("Missing root element");
  8. }
  9. createRoot(root).render(
  10. <StrictMode>
  11. <App />
  12. </StrictMode>,
  13. );