mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Changed JSON data in the tutorial to use double quotes for strings.
(cherry picked from commit 703c825196)
This commit is contained in:
committed by
Paul O’Shannessy
parent
31838ac88f
commit
759d387649
@@ -262,8 +262,8 @@ So far we've been inserting the comments directly in the source code. Instead, l
|
||||
```javascript
|
||||
// tutorial8.js
|
||||
var data = [
|
||||
{author: 'Pete Hunt', text: 'This is one comment'},
|
||||
{author: 'Jordan Walke', text: 'This is *another* comment'}
|
||||
{author: "Pete Hunt", text: "This is one comment"},
|
||||
{author: "Jordan Walke", text: "This is *another* comment"}
|
||||
];
|
||||
```
|
||||
|
||||
@@ -357,8 +357,8 @@ When the component is first created, we want to GET some JSON from the server an
|
||||
```javascript
|
||||
// tutorial13.json
|
||||
[
|
||||
{'author': 'Pete Hunt', 'text': 'This is one comment'},
|
||||
{'author': 'Jordan Walke', 'text': 'This is *another* comment'}
|
||||
{"author": "Pete Hunt", "text": "This is one comment"},
|
||||
{"author": "Jordan Walke", "text": "This is *another* comment"}
|
||||
]
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user