@samitouri / QOS-React-2 / commits / 50ea437bf8

indicate file name requried for static file

the text doesn't say explicitly to call your file comments.json, nor to put it in the public directory.

Richard Wood committed Jul 5, 2015 at 23:38 UTC 50ea437bf8f08c3fb662d6e366248e86c1c93fda
1 file changed +1 -1
docs/docs/tutorial.md
+1 -1
@@ -374,7 +374,7 @@ var CommentBox = React.createClass({
374 `getInitialState()` executes exactly once during the lifecycle of the component and sets up the initial state of the component.
375
376 #### Updating state
377 -When the component is first created, we want to GET some JSON from the server and update the state to reflect the latest data. In a real application this would be a dynamic endpoint, but for this example, we will use a static JSON file to keep things simple:
377 +When the component is first created, we want to GET some JSON from the server and update the state to reflect the latest data. In a real application this would be a dynamic endpoint, but for this example we will keep things simple by creating a static JSON file public/comments.json containing the array of comments:
378
379 ```javascript
380 // tutorial13.json