ошибка ts(2345)

аргумент типа ‘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 />)
Вход в полноэкранный режим Выход из полноэкранного режима

Оцените статью
devanswers.ru
Добавить комментарий