The dependency array in useEffect is used to specify the dependencies for the effect. When any of the dependencies change, the effect will re-run.
Question 14 of 22 in useEffect