13 lines
298 B
TypeScript
13 lines
298 B
TypeScript
|
|
import React from 'react';
|
||
|
|
import { createRoot } from 'react-dom/client';
|
||
|
|
import { App } from './App.js';
|
||
|
|
|
||
|
|
const container = document.getElementById('root');
|
||
|
|
if (!container) throw new Error('Missing #root');
|
||
|
|
|
||
|
|
createRoot(container).render(
|
||
|
|
<React.StrictMode>
|
||
|
|
<App />
|
||
|
|
</React.StrictMode>,
|
||
|
|
);
|