How can I return data from a promise and then pass it through a prop in a react component

前端 未结 0 642
广开言路
广开言路 2020-12-07 05:42

I\'m in a big struggle. I have two asynchronous function thats get or set info to an api. But the problem is that I cannot return an object. When I do return, it returns a p

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