From bdcb26590454c33696bc17c767040a4effca8e56 Mon Sep 17 00:00:00 2001 From: Ben Alpert Date: Mon, 4 Aug 2014 21:47:51 -0700 Subject: [PATCH] [docs] Add parens to defeat ASI in example Fixes #1996. --- docs/05-reusable-components.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/05-reusable-components.md b/docs/05-reusable-components.md index ceb830b9..dae061f4 100644 --- a/docs/05-reusable-components.md +++ b/docs/05-reusable-components.md @@ -134,10 +134,11 @@ var MyComponent = React.createClass({ }, render: function() { - return + return (
{this.props.children} // This must be exactly one element or it will throw. -
; + + ); } });