13 lines
248 B
TypeScript
13 lines
248 B
TypeScript
import { createRoot } from 'react-dom/client'
|
|
|
|
import App from './app/App'
|
|
|
|
const container = document.getElementById('root')
|
|
|
|
if (!container) {
|
|
throw new Error('Root element not found')
|
|
}
|
|
|
|
const root = createRoot(container)
|
|
root.render(<App />)
|