Created
August 30, 2018 09:14
-
-
Save kartikag01/29858bbd772bc9647af3d26511111f13 to your computer and use it in GitHub Desktop.
AfterComponentWillUpdate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
componentDidUpdate(prevProps, prevState) { | |
if (prevProps.value !== this.props.value) { | |
this.props.changeValue(this.props.value); // action | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment