Posts by Pedro Morais • 1 point
1 post
-
0
votes1
answer67
viewsA: Event "onClick()" running alone
@Gabrieloliveiramenezes, You should call your function as callback at the Onclick event. Adjusting your tag for this model: In the first if: <button onClick={() =>…