DanielcFenner/pokemon-reactpractice

If people spam the button they can get past 6 pokemon

Closed this issue · 0 comments

Because the fetch is async, it doesn't check if the state is <6 when the button is clicked. Add a count before the fetch request.