Last active
April 22, 2016 10:25
-
-
Save sebjwallace/0a3721c4b5df95bc3e16cd84aef87295 to your computer and use it in GitHub Desktop.
Less React, more JS
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
// https://jsfiddle.net/reactjs/5vjqabv3/ | |
var Hello = React.createClass({ | |
displayName: 'Hello', | |
render: function() { | |
return React.createElement("div", null, "Hello ", this.props.name); | |
} | |
}); | |
ReactDOM.render( | |
React.createElement(Hello, {name: "World"}), | |
document.getElementById('container') | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment