17 lines
346 B
TypeScript
17 lines
346 B
TypeScript
// frontend/src/main.tsx
|
|
import React from 'react'
|
|
import { createRoot } from 'react-dom/client'
|
|
import App from './App'
|
|
import './styles.css'
|
|
|
|
const el = document.getElementById('root')
|
|
if (!el) {
|
|
throw new Error('Missing <div id="root"></div> in index.html')
|
|
}
|
|
|
|
createRoot(el).render(
|
|
<React.StrictMode>
|
|
<App />
|
|
</React.StrictMode>
|
|
)
|