useEffect Hook : The author mentions that if we enter an empty array as a dependency array, the function is called only once. Well, I’m a bit confused about this. It’d be great if someone could elaborate it a bit. Thanks!
useEffect Hook : The author mentions that if we enter an empty array as a dependency array, the function is called only once. Well, I’m a bit confused about this. It’d be great if someone could elaborate it a bit. Thanks!