How to ensure ref.current exists before firing on click function?

后端 未结 0 1812
走了就别回头了
走了就别回头了 2021-01-13 08:33

I am receiving an undefined error when trying to set canvasRef.current. I have tried many different ways to form a callback ref, but I am getting no luck. How can I wait to

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