Created
November 6, 2021 22:34
-
-
Save szaranger/e36addb4464098e54cc05168f4820342 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
function ParentComponent() { | |
function handleClick() { | |
console.log('clicked inside child component'); | |
} | |
return <ChildComponent onClick={handleClick} /> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment