How to fix React Hook useEffect has missing dependencies: 'count'. Either include it or remove the dependency array. in React | DevErrors