How to setState by user's keyboard input in React?

后端 未结 0 1799
日久生厌
日久生厌 2020-11-22 06:49

I am currently writing a 2048 game which detects user\'s keyboard input and then change state of the corresponding direction; but I failed to change the state. I use this as

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