Running react component function when first mounted

后端 未结 0 1164
鱼传尺愫
鱼传尺愫 2021-02-20 07:57

I\'m trying to run this logic when the component is first loaded. I\'m not supposed to be using componentDidMount because I think that only works with class structure?

I\

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