News for hackers. Stuff that matters.
Re:React: Mixins Considered Harmful by mg74 on Wednesday July 13, 2016 @04:14PM (#12089295)
Export every component like this:

export class MyComponent extends React.Component { ... }

export default SomeHOC(MyComponent)

And in your test simply import the non-hoc version:

import { MyComponent } from './mycomponent'

Now the HOC won't get in the way of your testing.

There are no comments on this comment yet.