[docs] Add parens to defeat ASI in example

Fixes #1996.
This commit is contained in:
Ben Alpert 2014-08-04 21:47:51 -07:00
parent 2d250d44a5
commit e39a28c175
1 changed files with 3 additions and 2 deletions

View File

@ -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>
);
}
});