Typing a custom useRef hook for any type of HTML element

后端 未结 0 606
盖世英雄少女心
盖世英雄少女心 2021-01-23 06:01

I\'m still a bit new to Typescript and my goal is to create a custom React.useRef hook in Typescript that returns a ref. I would like this ref to be typed for any H

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