From e23797bfc8e3fbc0f2c4400284f87dd4e57a8889 Mon Sep 17 00:00:00 2001 From: Dylan Kirby Date: Fri, 27 Mar 2015 14:41:10 -0400 Subject: [PATCH] Fix 'respondible' typo in Tutorial --- docs/Tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Tutorial.md b/docs/Tutorial.md index b2db50d741..1e46888305 100644 --- a/docs/Tutorial.md +++ b/docs/Tutorial.md @@ -222,7 +222,7 @@ We want to send off the request after the component has finished loading. `compo }, ``` -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. +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. ```javascript fetchData: function() {