Redirecting you to https://medium.com/better-programming/understanding-the-useeffect-dependency-array-2913da504c44