[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 1bf8e83d49
commit bdcb265904

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