16 lines
402 B
TypeScript
16 lines
402 B
TypeScript
import React from 'react';
|
|
import ReactDOM from 'react-dom/client';
|
|
import './styles/global.css';
|
|
import './i18n'; // Initialize i18n
|
|
import App from './App';
|
|
|
|
const rootElement = document.getElementById('root');
|
|
if (!rootElement) throw new Error('Failed to find the root element');
|
|
|
|
const root = ReactDOM.createRoot(rootElement);
|
|
root.render(
|
|
<React.StrictMode>
|
|
<App />
|
|
</React.StrictMode>
|
|
);
|