Created
March 20, 2017 12:47
-
-
Save john1jan/cd068e91665eb6b959c2d9ff0fe78848 to your computer and use it in GitHub Desktop.
Binding Explained
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
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