Created
March 20, 2017 13:22
-
-
Save john1jan/43d4003d4602c65a01ec8aaa8d1c7b25 to your computer and use it in GitHub Desktop.
ArrowSample
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 Sample = React.createClass({ | |
printMars(message) { | |
console.log("Hello " + message); | |
}, | |
render() { | |
return ( | |
<div> | |
<input type="button" value="Print Mars" onClick={() => this.printMars("Mars")} /> | |
</div> | |
); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment