Skip to content

Instantly share code, notes, and snippets.

@john1jan
Created March 20, 2017 12:47
Show Gist options
  • Save john1jan/cd068e91665eb6b959c2d9ff0fe78848 to your computer and use it in GitHub Desktop.
Save john1jan/cd068e91665eb6b959c2d9ff0fe78848 to your computer and use it in GitHub Desktop.
Binding Explained
var Sample1 = React.createClass({
print(message) {
console.log("Hello " + message);
},
render() {
return (
<input type="button" value="Print" onClick={this.print("Mars")} />
);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment