Reactjs – What exactly should be included in the dependency array of useEffect?
What's the recommended approach for determining which states to include in useEffect's dependency array? I thought I should only pass states that I wanna watch over for changes and fire the useEffect based on those changes. For example in the…