Browse Source

[docs] Tweak frontpage first example and jsx-compiler example

main
Cheng Lou 11 years ago
parent
commit
99304a3a20
  1. 2
      _js/examples/hello.js
  2. 2
      _js/jsx-compiler.js

2
_js/examples/hello.js

@ -6,7 +6,7 @@ var HELLO_COMPONENT = "\
/** @jsx React.DOM */\n\
var HelloMessage = React.createClass({\n\
render: function() {\n\
return <div>{'Hello ' + this.props.name}</div>;\n\
return <div>Hello {this.props.name}</div>;\n\
}\n\
});\n\
\n\

2
_js/jsx-compiler.js

@ -6,7 +6,7 @@ var HELLO_COMPONENT = "\
/** @jsx React.DOM */\n\
var HelloMessage = React.createClass({\n\
render: function() {\n\
return <div>{'Hello ' + this.props.name}</div>;\n\
return <div>Hello {this.props.name}</div>;\n\
}\n\
});\n\
\n\

Loading…
Cancel
Save