Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Lifecycle instance functions
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