re: Discoveries I made while using Typescript and React VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Some tips: It's better if you avoid extends and just use union types: interface IProps { theme: Theme; } type CustomInputProps = HTMLAttr...
 

Regarding avoiding extends and just using union types: this is the kind of statement that definitely should be explained/quantified. Very easy for a beginner to see a comment like this and take it the wrong way.

code of conduct - report abuse