Skip to content

Instantly share code, notes, and snippets.

@Louiefigz
Created June 18, 2017 16:19
Show Gist options
  • Select an option

  • Save Louiefigz/bbcc6f13296784ad5b0d74f2278165fe to your computer and use it in GitHub Desktop.

Select an option

Save Louiefigz/bbcc6f13296784ad5b0d74f2278165fe to your computer and use it in GitHub Desktop.
componentWillReceiveProps(nextProps){
console.log('d')
if(nextProps !== this.props){
this.setState({
complete: false
})
}
}
shouldComponentUpdate(nextProps, nextState){
console.log('a');
return true
}
componentWillUpdate(nextProps, nextState){
console.log('b')
}
componentDidUpdate(prevProps, prevState){
console.log('c')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment