With React 16 coming soon and removing createClass from the main React package I just re-implemented the component extending React.Component.
I saw PR #11 trying to solve the same issue by adding create-react-class as a dependency. I reckon most people are running node v4+ so probably no need for adding that dependency.
I've simply re-implemented it "as is" without questioning the logic but if we get rid of the life-cycle method shouldComponentUpdate this could simply be a pure function.
With React 16 coming soon and removing
createClass
from the main React package I just re-implemented the component extendingReact.Component
.I saw PR #11 trying to solve the same issue by adding
create-react-class
as a dependency. I reckon most people are running node v4+ so probably no need for adding that dependency.I've simply re-implemented it "as is" without questioning the logic but if we get rid of the life-cycle method
shouldComponentUpdate
this could simply be a pure function.