Created
March 29, 2019 20:05
-
-
Save isacjunior/1f04c3021a690921f7a1a7efb2884cfd 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
import React, { Component } from 'react' | |
class WillUnmount extends Component { | |
componentDidMount() { | |
console.log('Eu estou montado') | |
} | |
componentWillUnmount() { | |
console.log('Vou desmontar') | |
} | |
render() { | |
return ( | |
<> | |
...Content | |
</> | |
) | |
} | |
} | |
export default WillUnmount |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment