import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import App from './App.tsx';
import './index.css';

// Ensure DOM is ready
const rootElement = document.getElementById('root');
if (rootElement) {
  // Clear any loading content
  rootElement.innerHTML = '';
  
  createRoot(rootElement).render(
    <StrictMode>
      <App />
    </StrictMode>
  );
} else {
  console.error('Root element not found');
}
