How to use useState (in React) to prevent from clicking a div more than once?

后端 未结 0 1744
轮回少年
轮回少年 2021-01-23 15:39

I\'m trying to fix my current bug where I have 6 clickable divs with onClick events. Upon clicking div \'a\',\'b\' or \'c\' for example, the count will increment by 1. After tha

相关标签:
回答
  • 消灭零回复
提交回复
热议问题