From 99304a3a2074d902c92bd141d24294c04db81c12 Mon Sep 17 00:00:00 2001 From: Cheng Lou Date: Thu, 16 Jan 2014 13:38:49 -0800 Subject: [PATCH] [docs] Tweak frontpage first example and jsx-compiler example --- _js/examples/hello.js | 2 +- _js/jsx-compiler.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_js/examples/hello.js b/_js/examples/hello.js index 019281bd..040a04ac 100644 --- a/_js/examples/hello.js +++ b/_js/examples/hello.js @@ -6,7 +6,7 @@ var HELLO_COMPONENT = "\ /** @jsx React.DOM */\n\ var HelloMessage = React.createClass({\n\ render: function() {\n\ - return
{'Hello ' + this.props.name}
;\n\ + return
Hello {this.props.name}
;\n\ }\n\ });\n\ \n\ diff --git a/_js/jsx-compiler.js b/_js/jsx-compiler.js index c98ee5b5..0e703d7f 100644 --- a/_js/jsx-compiler.js +++ b/_js/jsx-compiler.js @@ -6,7 +6,7 @@ var HELLO_COMPONENT = "\ /** @jsx React.DOM */\n\ var HelloMessage = React.createClass({\n\ render: function() {\n\ - return
{'Hello ' + this.props.name}
;\n\ + return
Hello {this.props.name}
;\n\ }\n\ });\n\ \n\