import { createRoot } from 'react-dom/client'; import './index.css'; import { App as AntApp, ConfigProvider } from 'antd'; import App from './App'; const rootElement = document.getElementById('root'); if (!rootElement) { throw new Error('Элемент #root не найден'); } createRoot(rootElement).render( // {/* AntApp даёт message/notification через App.useApp() с темой ConfigProvider; component={false} — без лишнего div */} , // , );