mirror of
https://github.com/Snigdha-OS/Snigdha-OS.github.io.git
synced 2025-09-06 04:35:18 +02:00
18 lines
405 B
TypeScript
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>
|
|
);
|