9 lines
274 B
TypeScript
9 lines
274 B
TypeScript
|
|
import { createRoot } from 'react-dom/client'; // импортируем createRoot
|
|
import App from './App';
|
|
|
|
const container = document.getElementById('root');
|
|
if (container) {
|
|
const root = createRoot(container); // создаем корень
|
|
root.render(<App />);
|
|
} |