Why do we need the dependency array in useEffect · InterviewLane