Hellow, I have this code and it works as I want but the browser\'s console gives me the error:
Error Warning: Maximum update depth exceeded.