Pietari Heino's personal website

  • Sample Page
  • About me
  • Reading
  • Watching

withstyles

Testing React HOC’s private logic

14/04/2019 / Leave a Comment

I had a problem with higher-order components, their use of even higher-order components, passing styles from the component-to-be-wrapped to the HOC, and testing of the bare/naked/base HOC without involving the wrapped component. In this post I shortly present the solution my colleague and I found to be working quite nicely (I expect you know all … [Read more…]

Posted in: random Tagged: material-ui, react, react hoc, withstyles