How to trigger function on right and left arrow press?

后端 未结 0 920
长发绾君心
长发绾君心 2020-12-11 20:03

I would like to trigger a function when someone presses the left and right keyboard arrows (not click events)? How do I do this in react?

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