14 lines
303 B
TypeScript
14 lines
303 B
TypeScript
import { StrictMode } from 'react';
|
|
import { createRoot } from 'react-dom/client';
|
|
import { App } from './App';
|
|
import './styles/global.css';
|
|
|
|
const el = document.getElementById('root');
|
|
if (!el) throw new Error('#root not found');
|
|
|
|
createRoot(el).render(
|
|
<StrictMode>
|
|
<App />
|
|
</StrictMode>,
|
|
);
|