Created
September 24, 2019 20:46
-
-
Save larafale/a09cee5d52995d1913a3e9e8c5dcff50 to your computer and use it in GitHub Desktop.
react hook reference
This file contains 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
componentDidMount() { | |
this.props.onRef&&this.props.onRef(this) | |
} | |
componentWillUnmount() { | |
this.props.onRef&&this.props.onRef(undefined) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment