Why Hook state do not update?

前端 未结 0 1779
暗喜
暗喜 2021-02-04 14:50

my state does not update when i run this code

const [mydata, setMydata]= useState([])

const LoginFunc= async()=>{ await fetch(\'https://thejoblocator.co.uk/api/

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