react-version: 18.2
antd version: 4.19
报错:Use createRoot instead" occurs because the ReactDOM.render method has been deprecated. To solve the error, create a root element and use the ReactDOMClient.render method instead. This occurs since the render () method of the react-dom package is considered legacy starting react-dom version 18.
Tried version 4.17 of antd, version 4.19, version 4.19.5, the problem exists
Solution: Upgrade to the latest 4.x version on the document: 4.24.12
That's it, don't report an error
reference: