cant update state hook on keyDown

前端 未结 0 774
自闭症患者
自闭症患者 2021-01-15 04:34

hello guys I\'m trying to update a state when the space bar is clicked but it seems that the state value is not change and always print 0

here is what I tried :

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