NLP-IBM-Debater / src /index.js
Yassine Mhirsi
added chatbot
ff92aff
raw
history blame
939 Bytes
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(
<React.StrictMode>
<ErrorBoundary>
<App />
</ErrorBoundary>
</React.StrictMode>
);
// 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();