React useEffect always runs after the component mounts for very first time, irrespective of change in the state variable’s value. Let’s discuss, how can we avoid this. Before going through the solution below, I would suggest you to try to solve it by...