import React from 'react'; import ReactDOM from 'react-dom/client'; import './index.css'; import App from './app/App.tsx'; import ErrorBoundary from './app/components/common/ErrorBoundary.tsx'; import reportWebVitals from './reportWebVitals'; // Initialize theme from localStorage before rendering to prevent flash const storedTheme = localStorage.getItem('app-theme') || 'dark'; if (storedTheme === 'dark') { document.documentElement.classList.add('dark'); } else { document.documentElement.classList.remove('dark'); } const root = ReactDOM.createRoot(document.getElementById('root')); root.render( ); // If you want to start measuring performance in your app, pass a function // to log results (for example: reportWebVitals(console.log)) // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals reportWebVitals();