Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8c8841c

Browse files
chenglouvjeux
authored andcommitted
[docs] Tweak frontpage first example and jsx-compiler example
1 parent c7f0663 commit 8c8841c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/_js/examples/hello.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var HELLO_COMPONENT = "\
66
/** @jsx React.DOM */\n\
77
var HelloMessage = React.createClass({\n\
88
render: function() {\n\
9-
return <div>{'Hello ' + this.props.name}</div>;\n\
9+
return <div>Hello {this.props.name}</div>;\n\
1010
}\n\
1111
});\n\
1212
\n\

docs/_js/jsx-compiler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var HELLO_COMPONENT = "\
66
/** @jsx React.DOM */\n\
77
var HelloMessage = React.createClass({\n\
88
render: function() {\n\
9-
return <div>{'Hello ' + this.props.name}</div>;\n\
9+
return <div>Hello {this.props.name}</div>;\n\
1010
}\n\
1111
});\n\
1212
\n\

0 commit comments

Comments
 (0)