3 ms·
You can "pass through" props like so: export var hocFunction: (arg1: any, arg2: any) => <ComponentT>(component: ComponentT) => ComponentT If you want to add n
by tomduncalf 10y ago
You can "pass through" props like so:
export var hocFunction: (arg1: any, arg2: any) => <ComponentT>(component: ComponentT) => ComponentT
If you want to add new props as a result of the HOC then see the react-redux .d.ts for a few examples: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/react-redux/react-redux.d.ts#L51 https://github.com/DefinitelyTyped/DefinitelyTyped/blob/mast...