Blog

We are adding the counter variable inside an array as an argument to useEffect as in the following code. And because of that: