Skip to content

Instantly share code, notes, and snippets.

@WrathChaos
Last active November 7, 2019 20:31
Show Gist options
  • Save WrathChaos/50cdf9544d8840eefc9a4511df932e3f to your computer and use it in GitHub Desktop.
Save WrathChaos/50cdf9544d8840eefc9a4511df932e3f to your computer and use it in GitHub Desktop.
React Hooks: componentDidMount
// Class
componentDidMount() {
    console.log('componentDidMount');
}

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