Created
August 27, 2020 17:07
-
-
Save kabeer11000/9bb44171b29c7fa7047ac2f68ebb4f3a 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
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'}/>); | |
} |
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
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