请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

有一个警告Can't call setState on a component that is not yet mounted

写的代码和老师一样,但是第一次输入后,点击按钮,会有一个警报‘react_devtools_backend.js:4026 Warning: Can’t call setState on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to this.state directly or define a state = {}; class property with the desired state in the TodoList component.’
但是我并没有在初始化的时候用setstate方法啊

正在回答 回答被采纳积分+3

1回答

Dell 2022-08-13 21:09:26

把组件代码发上来一起看一下

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号