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

pure #13748

Merged
merged 2 commits into from
Sep 27, 2018
Merged

pure #13748

merged 2 commits into from
Sep 27, 2018

Commits on Sep 27, 2018

  1. pure

    A higher-order component version of the `React.PureComponent` class.
    During an update, the previous props are compared to the new props. If
    they are the same, React will skip rendering the component and
    its children.
    
    Unlike userspace implementations, `pure` will not add an additional
    fiber to the tree.
    
    The first argument must be a functional component; it does not work
    with classes.
    
    `pure` uses shallow comparison by default, like `React.PureComponent`.
    A custom comparison can be passed as the second argument.
    
    Co-authored-by: Andrew Clark <acdlite@fb.com>
    Co-authored-by: Sophie Alpert <sophiebits@fb.com>
    acdlite and sophiebits committed Sep 27, 2018
    Configuration menu
    Copy the full SHA
    3cb0a3f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    645a8ba View commit details
    Browse the repository at this point in the history