-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Framework: Replace React.addons.PureRenderMixin with react-pure-render #1878
Conversation
@@ -1,7 +1,8 @@ | |||
/** | |||
* External Dependencies | |||
*/ | |||
var React = require( 'react/addons' ), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How did React.createClass
work before if React
was react/addons
?
Did react/addons
contain react as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did
react/addons
contain react as well?
Yes, react/addons
is essentially a superset of React which adds the addons
property methods.
09bc649
to
0423395
Compare
Rebased. |
AFAICS, LGTM :-) |
At second glance, |
I'll file a PR for |
Thanks @ockham ! I'll add the CREDIT and merge shortly thereafter. |
3878474
to
dded938
Compare
Framework: Replace React.addons.PureRenderMixin with react-pure-render
This pull request seeks to replace
React.addons.PureRenderMixin
with thereact-pure-render
package. React addons were moved to separate packages in React 0.14 and currently cause warnings to appear in development environments. Facebook offers its ownreact-addons-pure-render-mixin
package, but I suggest here that we use thereact-pure-render
package instead, as it includes a few useful variations for usage (i.e. function for use in React component classes).Testing instructions:
Code verification:
/addons
suffix in React import accurately reflects current existence of addon usage.React.addons.PureRenderMixin
remainsNext steps:
We should replace
shallowequal
usage withreact-pure-render
s ownreact-pure-render/shallowEqual
module (see #1463, cc @ockham )