Handle both React.KeyboardEvent or React.MouseEvent in one function

前端 未结 0 731
隐瞒了意图╮
隐瞒了意图╮ 2021-01-28 06:15

I\'m trying to get a function to handle both click and keyboard events as I\'m trying to make my web app keyboard accessible. When I use the | symbol for the type

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