Why doesn't React batch state updates when we use addEventListener for our handler function?

后端 未结 0 1482
心在旅途
心在旅途 2020-12-16 22:55

I have 2 buttons. For the first button, I attached the event handler with the onClick prop while for the second button, I used native addEventListener() method. State update

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