import { StrictMode } from 'react'; import { createRoot } from 'react-dom/client'; import App from './App.tsx'; import './index.css'; // Error boundary for better debugging const ErrorBoundary = ({ children }: { children: React.ReactNode }) => { try { return <>{children}; } catch (error) { console.error('App Error:', error); return
Error loading application. Check console for details.
; } }; const rootElement = document.getElementById('root'); if (rootElement) { createRoot(rootElement).render( ); } else { console.error('Root element not found'); }