React中设置setState?

我想在React中调用ajax设置DATA,可是setState时报错?为什么报错信息如下?我该如何修改?
代码打包之类的是好的?可以打印出TEST

index.bundle.js?__VERSION:91 Uncaught TypeError: Cannot read property 'setState' of null

at success (http://localhost:8000/js/index.bundle.js?__VERSION:91:26)

at ajaxSuccess (http://localhost:8000/js/index.bundle.js?__VERSION:1906:31)

at XMLHttpRequest.xhr.onreadystatechange (http://localhost:8000/js/index.bundle.js?__VERSION:2107:99)

https://img2.mukewang.com/5bd81b6e000172c905140539.jpg

慕妹3242003
浏览 763回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript