Skip to content

Commit ffc31ed

Browse files
committed
Merge pull request facebook#914 from chenglou/jsx
tweak frontpage first example code
2 parents df8d092 + d8d4120 commit ffc31ed

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)