[go: up one dir, main page]

Skip to content

Commit

Permalink
Merge pull request facebook#4291 from rwoodnz/patch-2
Browse files Browse the repository at this point in the history
indicate file name requried for static file
  • Loading branch information
zpao committed Jul 13, 2015
2 parents e9915f0 + 24c41b6 commit e9b3974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,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
Expand Down

0 comments on commit e9b3974

Please sign in to comment.