| 1 | import { StrictMode } from "react"; |
| 2 | import { createRoot } from "react-dom/client"; |
| 3 | import { scan } from "react-scan"; |
| 4 | import { App } from "./App"; |
| 5 | import "./index.css"; |
| 6 | |
| 7 | const container = document.getElementById("root"); |
| 8 | |
| 9 | if (!container) { |
| 10 | throw new Error("Expected a #root element for the example playground."); |
| 11 | } |
| 12 | |
| 13 | scan({ |
| 14 | animationSpeed: "off", |
| 15 | enabled: true, |
| 16 | showToolbar: true, |
| 17 | dangerouslyForceRunInProduction: true, |
| 18 | }); |
| 19 | |
| 20 | createRoot(container).render( |
| 21 | <StrictMode> |
| 22 | <App /> |
| 23 | </StrictMode>, |
| 24 | ); |