Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extending React.Component rather than using createClass #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

julienmachon
Copy link

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.

@joshhornby
Copy link

@evancz Can this be merged? :)

@Voronchuk
Copy link

I guess you shouldn't use uncompiled ES6 as it will break a lot of 3rd party deps, should export a compiled version.

@sentience
Copy link
Member

This seems to be obsolete now that #11 has merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants