Why eventListener re-render React Component

后端 未结 0 1202
隐瞒了意图╮
隐瞒了意图╮ 2020-12-05 06:42

I am creating a stopwatch in React.js and i am wondering why window.addEventListener(\'keydown\', callback) re-render my component?



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