import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import App from './App.tsx';
import './index.css';
import ErrorBoundary from './ErrorBoundary';
// Error boundary for the entire application
const renderApp = () => {
try {
const rootElement = document.getElementById('root');
if (!rootElement) {
console.error('Root element not found');
return;
}
createRoot(rootElement).render(
Sorry, something went wrong while loading the application.
Error details: ${error instanceof Error ? error.message : String(error)}