From 4c8726a1cae5759b695a6dca21206b80b6157d4a Mon Sep 17 00:00:00 2001 From: Richard Wood Date: Sun, 5 Jul 2015 23:38:23 +1200 Subject: [PATCH] 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. --- docs/tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial.md b/docs/tutorial.md index f8075a6a..c868d34d 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -374,7 +374,7 @@ var CommentBox = React.createClass({ `getInitialState()` executes exactly once during the lifecycle of the component and sets up the initial state of the component. #### Updating state -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: +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: ```javascript // tutorial13.json