TypeError: data.map is not a function using axios and useState Hook

前端 未结 0 361
余生分开走
余生分开走 2021-02-02 04:54

Why is the data empty when setData is assigned the value returned from the axios? I am so worried, I have tried several approaches but all the same. What could be a problem?

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