How to write a React component with parameterized props and a forward ref, in typescript

前端 未结 0 448
轻奢々
轻奢々 2020-12-17 01:22

Minimal example with my best attempt so far:

interface Props {
  foo: T
}

const Component = React.forwardRef&         


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