Last active
October 18, 2017 06:23
-
-
Save dounan/1103d9f150c9637cd05e5037b5c05857 to your computer and use it in GitHub Desktop.
Simple reflective-bind example
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 MyComponent(props) { | |
const msg = "Hello " + props.user.name.first; | |
return <PureChild onClick={() => alert(msg)} /> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment