аргумент типа ‘htmlelement | null’ не может быть присвоен параметру типа ‘element’. тип ‘null’ не может быть присвоен типу ‘element’. ts(2345)
import.js
import React from 'react';
import { createRoot } from 'react-dom/client';
import './index.css';
import App from './App';
const container = document.getElementById('root')
const root = createRoot(container)
root.render(<App />)