How can I set the props type in HOC in react-typescript?

后端 未结 0 1823
执笔经年
执笔经年 2020-12-23 02:24

I have a simple withAuth HOC. I am trying to define the type for props.

const withAuth = (Component: typeof React.Component) => (role: string) => {
  re         


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