Skip to content

Instantly share code, notes, and snippets.

@sebjwallace
Last active April 22, 2016 10:25
Show Gist options
  • Save sebjwallace/0a3721c4b5df95bc3e16cd84aef87295 to your computer and use it in GitHub Desktop.
Save sebjwallace/0a3721c4b5df95bc3e16cd84aef87295 to your computer and use it in GitHub Desktop.
Less React, more JS
// 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