Re:React: Mixins Considered Harmful
by coderzach on Wednesday July 13, 2016 @03:09PM
(#12088792)
Why not just mock the HOC to be the identity fn? `(Component) => Component`
[ Parent
| on HN ]
This is my preferred approach as well - and it (anecdotally) works great, since you can then just manually inject any props/spies as needed like any other "dumb" component.
Edit: But he might be pointing to the testing of the actual HOCs/component decorating functions.