Browse Source

[docs] Add parens to defeat ASI in example

Fixes #1996.
main
Ben Alpert 11 years ago
parent
commit
bdcb265904
  1. 5
      docs/05-reusable-components.md

5
docs/05-reusable-components.md

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

Loading…
Cancel
Save