how to call UseState hook's state updater function inside a callback in react.js

前端 未结 0 1614
悲哀的现实
悲哀的现实 2021-02-13 14:53

I\'m having this code where after I get the http request fulfilled, I\'m calling the state updater function i.e., setUserName with the response I get from the async

相关标签:
回答
  • 消灭零回复
提交回复
热议问题