DEV Community

Discussion on: React Higher-Order Components in TypeScript made simple

Collapse
 
danhomola profile image
Dan Homola

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 :)