Setting state value coming from axios when using useState() and useEffect() in React

后端 未结 0 1787
一个人的身影
一个人的身影 2020-12-09 04:24

When I run this test the axios call is mocked correctly but setParticipant() never sets the value of the participant variable. I\'m guessing it\'s

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