Skip to content

Commit 31c9843

Browse files
committed
Merge pull request #359 from djkirby/fix-tutorial-typo
Fix 'respondible' typo in Tutorial
2 parents e02ea66 + e23797b commit 31c9843

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ We want to send off the request after the component has finished loading. `compo
222222
},
223223
```
224224

225-
Now add `fetchData` function used above to our main component. This method will be respondible for handling data fetching. All you need to do is call `this.setState({movies: data})` after resolving the promise chain because the way React works is that `setState` actually triggers a re-render and then the render function will notice that `this.state.movies` is no longer `null`. Note that we call `done()` at the end of the promise chain - always make sure to call `done()` or any errors thrown will get swallowed.
225+
Now add `fetchData` function used above to our main component. This method will be responsible for handling data fetching. All you need to do is call `this.setState({movies: data})` after resolving the promise chain because the way React works is that `setState` actually triggers a re-render and then the render function will notice that `this.state.movies` is no longer `null`. Note that we call `done()` at the end of the promise chain - always make sure to call `done()` or any errors thrown will get swallowed.
226226

227227
```javascript
228228
fetchData: function() {

0 commit comments

Comments
 (0)