-
-
Save imdongchen/d084dcf15f6ab4f631fb92f116441af0 to your computer and use it in GitHub Desktop.
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
function handleClick() { /* do something */ } | |
function MyComponent() { | |
return ( | |
<InnerComponent title={title} onClick={handleClick} /> // the click handler is the same reference | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment