import React from 'react';
import { createRoot } from 'react-dom/client';
import App from './App.tsx';
import './index.css';
import { initPerformanceMonitoring } from './utils/performance';
// Enhanced error handling for deployment environments
const initializeApp = () => {
try {
// Initialize performance monitoring in production with safety
if (process.env.NODE_ENV === 'production') {
try {
initPerformanceMonitoring();
} catch (perfError) {
// Silently handle performance monitoring errors
}
}
const rootElement = document.getElementById('root');
if (!rootElement) {
throw new Error('Root element not found');
}
const root = createRoot(rootElement);
root.render(
Application is starting up...
Please refresh the page if this message persists.