React JS - Uncaught TypeError: states.map is not a function // useEffect problem

后端 未结 0 1617
青春惊慌失措
青春惊慌失措 2020-12-06 07:44

So when calling the map function on states.map I get the Uncaught TypeError: states.map is not a function. Which I don\'t understand why. Also the API call only happens when

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