import {StrictMode} from 'react'; import {createRoot} from 'react-dom/client'; import App from './App.tsx'; import {ErrorBoundary} from './components/ErrorBoundary.tsx'; import './index.css'; const rootElement = document.getElementById('root'); if (rootElement) { createRoot(rootElement).render( , ); } else { console.error("Critical: Could not find root element with id 'root'."); }