1var Hello = React.createClass({
2 render: function() {
3 return <div>Hello {this.props.user.name}</div>;
4 }
5});
6
7var props = { user: {name: "World"}};
8React.render(React.createElement(Hello, props), document.getElementById('container'));
9