Last active
December 24, 2019 15:37
-
-
Save simbathesailor/c105910fff564b1238634da5e2e6ebd8 to your computer and use it in GitHub Desktop.
Lifecycle instance functions
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
class App extends React.Component() { | |
callback = () => { | |
// some logic | |
}; | |
callback2 = () => { | |
// some logic | |
}; | |
render() { | |
return ( | |
<div> | |
<SomeChildComponent callback={callback} callback2={callback2} /> | |
</div> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment