0

123.png
当导航菜单超过一定长度后面会隐藏起来,当鼠标移动到隐藏那部分,控制台就开始冒一堆警告提示了,例子是直接官方demo照搬过来的,不知道为什么会这样,下面是控制台警告提示

antd版本是3.20,升到3.25最新版本也是一样会冒一堆警告提示

Warning: setState(...): Cannot update during an existing state transition (such as within`render`or another component's constructor). Render methods should be a pure function of props and state; constructor side-effects are an anti-pattern, but can be moved to`componentWillMount`.

321.png

http_404 217
11月6日提问
1 个回答

撰写答案

推广链接