Skip to content

Instantly share code, notes, and snippets.

@kabeer11000
Created August 27, 2020 17:07
Show Gist options
  • Save kabeer11000/9bb44171b29c7fa7047ac2f68ebb4f3a to your computer and use it in GitHub Desktop.
Save kabeer11000/9bb44171b29c7fa7047ac2f68ebb4f3a to your computer and use it in GitHub Desktop.
const someFunction1 = () => {
// Call This Function
console.log('called');
}
const ChildComponent = (props) => {
const [state, useState] = React.useState(0);
const someFunction2 = () => {
// Call This Function
console.log('called');
}
return (<AnotherComponent exampleProperty={'somthing'}/>);
}
const ParentComponent = (props) => {
const [state, useState] = React.useState(0);
return (<ChildComponent exampleProperty={'somthing'}/>);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment