Should I rely on the dependency list check of react useEffect hook?

前端 未结 0 1751
既然无缘
既然无缘 2021-01-12 18:37

Consider the following code

useEffect(effect, [v]) // v can be undefined

I want to run the effect function only

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