Skip to content

Instantly share code, notes, and snippets.

@WrathChaos
Created November 7, 2019 20:35
Show Gist options
  • Save WrathChaos/7caff6adf67ea87512f63e6fe15cca24 to your computer and use it in GitHub Desktop.
Save WrathChaos/7caff6adf67ea87512f63e6fe15cca24 to your computer and use it in GitHub Desktop.
React Hooks: componentDidUpdate
// Class
componentDidUpdate() {
    console.log('componentDidUpdate');
}

// React Hooks: componentDidUpdate
useEffect(() => {
    console.log('React Hooks: componentDidUpdate');
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment