Files
Snigdha-OS.github.io/src/main.tsx

18 lines
405 B
TypeScript

import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import App from './App';
import './index.css';
// Ensure 'root' element exists to avoid runtime errors
const rootElement = document.getElementById('root');
if (!rootElement) {
throw new Error('Root element not found');
}
const root = createRoot(rootElement);
root.render(
<StrictMode>
<App />
</StrictMode>
);