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

TOP OF THREAD FULL DISCUSSION
re: Hey there Dan, MadProps for this article. Going forward with this example, how would you use ReactDOM.render with this component? Say we continue...
 

Hi, thanks for the MadProps :)

<Demo> has props of type TOriginalProps & ExternalProps (no InjectedProps).

<DemoComponent> has props of type TOriginalProps & InjectedProps.

Look at the diagram at the start of the article, it should make the prop types flow clearer :)

code of conduct - report abuse