Example is JSX not JS.

This commit is contained in:
James South
2015-04-20 14:26:39 +01:00
parent 536681aa5d
commit 2ef5848a35

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({