-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Recommmended PureComponent instead of shallowCompare #110
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
Recommmended PureComponent instead of shallowCompare #110
Conversation
Deploy preview ready! Built with commit 702fddd |
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.
I think it might be nicer to change the wording slightly:
We recommend using
React.PureComponent
instead.
But otherwise this looks okay 👍
Unfortunately it looks like an earlier PR has caused a merge conflict. Would you rebase this so I can merge it?
content/docs/addons.md
Outdated
<<<<<<< HEAD | ||
- [`PureRenderMixin`](pure-render-mixin.html). Use [`React.PureComponent`](/docs/react-api.html#reactpurecomponent) instead. | ||
- [`shallowCompare`](shallow-compare.html), a helper function that performs a shallow comparison for props and state in a component to decide if a component should update. We recommend using [`React.PureComponent`](/docs/react-api.html#reactpurecomponent) instead. | ||
======= | ||
- [`PureRenderMixin`](pure-render-mixin.html). Use [`React.PureComponent`](/docs/react-api.html#reactpurecomponent) instead. |
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.
Looks like this didn't get merged correct
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.
Sorry, I'm so silly.
Thanks 😄 |
@boniattirodrigo LGTM 👍 PR aprovada! Obrigado pela contribuição!
Issue #84
Recommended
PureComponent
instead ofshallowCompare
on Addons page.