Merge pull request #3703 from JimBobSquarePants/patch-1

Example is JSX not JS.
This commit is contained in:
Paul O’Shannessy
2015-04-20 09:40:23 -07:00

View File

@@ -32,7 +32,7 @@ Let's look at a really simple example. Create a `hello-react.html` file with the
</html>
```
For the rest of the documentation, we'll just focus on the JavaScript code and assume it's inserted into a template like the one above. Replace the placeholder comment above with the following JS:
For the rest of the documentation, we'll just focus on the JavaScript code and assume it's inserted into a template like the one above. Replace the placeholder comment above with the following JSX:
```javascript
var HelloWorld = React.createClass({