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

Mixins are deprecated in react 0.14 #1

Closed
pke opened this issue Nov 23, 2015 · 1 comment
Closed

Mixins are deprecated in react 0.14 #1

pke opened this issue Nov 23, 2015 · 1 comment

Comments

@pke
Copy link

pke commented Nov 23, 2015

Do you have any plans to convert the mixin to a function that could be used like:
lifecycle(MyComponent)

@jasonslyvia
Copy link
Owner

I don't suppose mixins are deprecated only if you insist using the class syntax. However, there're quite a few mixins decorators that allow you take advantage of existing mixins using class.

  1. https://github.com/timbur/react-mixin-decorator
  2. https://github.com/jayphelps/core-decorators.js/blob/master/src/mixin.js

@pke pke closed this as completed Jul 21, 2016
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

No branches or pull requests

2 participants