[docs] Tweak frontpage first example and jsx-compiler example
Cheng Lou committed
Jan 16, 2014 at 13:38 UTC
d8d4120614c72111e4ed7f553f4b36d14a3a1a4a
2 files changed
+2
-2
docs/_js/examples/hello.js
+1
-1
@@ -6,7 +6,7 @@ var HELLO_COMPONENT = "\
6
/** @jsx React.DOM */\n\
7
var HelloMessage = React.createClass({\n\
8
render: function() {\n\
9
- return <div>{'Hello ' + this.props.name}</div>;\n\
9
+ return <div>Hello {this.props.name}</div>;\n\
10
}\n\
11
});\n\
12
\n\
docs/_js/jsx-compiler.js
+1
-1
@@ -6,7 +6,7 @@ var HELLO_COMPONENT = "\
6
/** @jsx React.DOM */\n\
7
var HelloMessage = React.createClass({\n\
8
render: function() {\n\
9
- return <div>{'Hello ' + this.props.name}</div>;\n\
9
+ return <div>Hello {this.props.name}</div>;\n\
10
}\n\
11
});\n\
12
\n\