import React, { Component, ErrorInfo, ReactNode, StrictMode } from 'react'; import { createRoot } from 'react-dom/client'; import App from './App.tsx'; import './index.css'; interface ErrorBoundaryProps { children: ReactNode; } interface ErrorBoundaryState { hasError: boolean; error: Error | null; } class ErrorBoundary extends React.Component { state: ErrorBoundaryState = { hasError: false, error: null, }; public static getDerivedStateFromError(error: Error): ErrorBoundaryState { return { hasError: true, error }; } public componentDidCatch(error: Error, errorInfo: ErrorInfo) { console.error('Uncaught error in React render:', error, errorInfo); } public render() { if (this.state.hasError) { return (
health_and_safety

MediQuote AI Ready

The application encountered a transient loading state. Please refresh or click reset to reload the latest clinical interface.

); } return (this as any).props?.children || null; } } createRoot(document.getElementById('root')!).render( );