Created
January 9, 2021 06:10
-
-
Save bewarusman/6ad0d522573db3c9bf212e1efe5f2f23 to your computer and use it in GitHub Desktop.
This file contains hidden or 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) { | |
if (prevProps.children !== this.props.children) { | |
// update third-party library based on prop change | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment