How to type higher order component that provides props

前端 未结 0 1845
伪装坚强ぢ
伪装坚强ぢ 2021-01-27 17:10

I have a sample placeholder component that consumes two required props:

type ComponentProps = {
  foo: string;
  bar: number;
}

const Component = (props: Compone         


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