Skip to content

Instantly share code, notes, and snippets.

@dounan
Last active October 18, 2017 06:23
Show Gist options
  • Save dounan/1103d9f150c9637cd05e5037b5c05857 to your computer and use it in GitHub Desktop.
Save dounan/1103d9f150c9637cd05e5037b5c05857 to your computer and use it in GitHub Desktop.
Simple reflective-bind example
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