📅  最后修改于: 2022-03-11 15:02:17.606000             🧑  作者: Mango
var Hello = React.createClass({
render: function() {
return Hello {this.props.user.name};
}
});
var props = { user: {name: "World"}};
React.render(React.createElement(Hello, props), document.getElementById('container'));