File
Blob: src/main.tsx
| 1 | import { StrictMode } from "react"; |
| 2 | import { createRoot } from "react-dom/client"; |
| 3 | import App from "./App"; |
| 4 | import "./index.css"; |
| 5 | |
| 6 | const root = document.getElementById("root"); |
| 7 | if (!root) throw new Error("Root element #root not found."); |
| 8 | |
| 9 | createRoot(root).render( |
| 10 | <StrictMode> |
| 11 | <App /> |
| 12 | </StrictMode>, |
| 13 | ); |