What is categorized as dependency to be passed to useEffect?

后端 未结 0 2032
暖寄归人
暖寄归人 2020-12-03 22:27

When reading the the official Hooks guide, it mentioned that every value referenced inside the effect function should also appear in the dependencies array.

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