Create a HoC as an alternative to the mixin
Since mixins don't work with React.Component and are likely on the depreciation path, a HoC is a better interface option for React. What do you think?
I think it will be great to have a HoC version that people can use as an alternative to the mixin.
Would it be possible to refactor the PR so that it shares most of its logic with the mixin, instead of having the logic in two places?
Also, can we depend on a less strict version of react than "^15.3.0"?
Fixed those two things! My initial pull request was more of a draft, hence those two issues.
For those who didn't know (like me): HoC = Higher-order Component.
Pushing updates to my fork now
This is coming along great! I made a few more comments, but otherwise I think it's fine. We'll probably want to add or modify an example to use ES6 classes, but that doesn't need to happen in this PR.