Skip to content

Instantly share code, notes, and snippets.

@renanccastro
Created July 5, 2016 03:53
Show Gist options
  • Save renanccastro/bd251e400272821dbc93722ac183c2b5 to your computer and use it in GitHub Desktop.
Save renanccastro/bd251e400272821dbc93722ac183c2b5 to your computer and use it in GitHub Desktop.
"use strict";
var HelloMessage = React.createClass({
displayName: "HelloMessage",
render: function render() {
return React.createElement(
"div",
null,
"Hello ",
this.props.name
);
}
});
ReactDOM.render(React.createElement(HelloMessage, { name: "John" }), mountNode);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment