Warning: Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.
parece que é esse useEffect: testar tirar o counter do reducer e ter um setCounter
Warning: Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.
parece que é esse useEffect: testar tirar o counter do reducer e ter um setCounter