React: weird closure bug caused by setInterval

前端 未结 0 574
你的背包
你的背包 2021-01-27 13:27

I have a component where there is a counter and a button to increment it. After the counter reaches to 5 we cannot increment it further. And there is a checkbox as

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