Created
August 30, 2018 09:13
-
-
Save kartikag01/42cd412455b03427707856e1a2a36043 to your computer and use it in GitHub Desktop.
BeforeComponentWillUpdate
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
componentWillUpdate(nextProps, nextState) { | |
if (this.props.value !== nextProps.value) { | |
this.props.changeValue(nextProps.value); // action | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment