wait for useEffect to update state in order to pass down props?

后端 未结 0 1569
借酒劲吻你
借酒劲吻你 2020-12-31 10:22

I have a parent component that is fetching data from an api, I would like to fetch it once on render and set it to state and pass it down as props to a child component that

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