Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Check the component properties and state for changes
public componentDidUpdate(prevProps : IProps, prevState : IState) : void
{
// If properties have changed bind it
if(this.props.properties !== prevProps.properties || this.state.stateValue !== prevState.stateValue)
{
//Do more things here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment