import { createRoot } from 'react-dom/client'; import './index.css'; import { ConfigProvider } from 'antd'; import App from './App'; const rootElement = document.getElementById('root'); if (!rootElement) { throw new Error('Не найден корневой элемент #root'); } createRoot(rootElement).render( // , // , );