educative.io

Educative

React Side-Effects - The Road to React: The one with Hooks

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!