React - How to use a hook in a button onClick

后端 未结 0 1402
滥情空心
滥情空心 2021-01-03 04:45

I have a component which looks like the following. When the button is clicked I want my GraphQL modification to run. However with what I have so far I keep seeing the error:

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