mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
@@ -134,10 +134,11 @@ var MyComponent = React.createClass({
|
||||
},
|
||||
|
||||
render: function() {
|
||||
return
|
||||
return (
|
||||
<div>
|
||||
{this.props.children} // This must be exactly one element or it will throw.
|
||||
</div>;
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user