React useEffect executing last function

后端 未结 0 1841
慢半拍i
慢半拍i 2020-12-14 02:21

I need to have 2 different functions that update 2 different components only once in the beginning. Hence, I\'m using useEffect. The code is as follows



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