Why does the useEffect hook want function as a dependency array in React?

前端 未结 0 816
自闭症患者
自闭症患者 2021-01-23 02:23

What does it mean to have a function dependency? For example const [count, setCount] = useState (0); There is a state like. When useEffect is used, the dependency a

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