Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on React: Mixins Considered Harmful. Parent comment
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.
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.