create-react-app
antd版本:4.3.0

报错:index.js:1 Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of DOMWrap which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here:bc.png
经查阅原来是把严格模式加入了版本改动
20200326120440520.png
解决办法:
找到index.js 删除<React.StrictMode>标签,关闭严格模式即可。
WX20200601-135533@2x.png