mirror of
https://github.com/facebook/react.git
synced 2026-02-26 07:55:55 +00:00
Merge pull request #3703 from JimBobSquarePants/patch-1
Example is JSX not JS.
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user