dimanche 14 novembre 2021

How to Do not count negative numbers with IF function in React

Error: Too many re-renders.

They gave us this simple exercise but I'm stuck at this point. With the IF function I am looking when the counter reaches 0 it does not count negative numbers. I got this error:

Error: Too many re-renders. React limits the number of renders to prevent an infinite loop.

Aucun commentaire:

Enregistrer un commentaire