re: React Higher-Order Components in TypeScript made simple VIEW POST

FULL DISCUSSION
 

Nice post, just what I was looking for!

I think you can shorten

React.ComponentClass<TOriginalProps & InjectedProps>
| React.StatelessComponent<TOriginalProps & InjectedProps>

into

React.ComponentType<TOriginalProps & InjectedProps>

at least in newer react typings.

 

Thank you for the suggestion, I'll look into it :)

code of conduct - report abuse