From 39d8dc722e55e83c0c706742d7d884847578ba45 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Mon, 30 Mar 2015 15:42:52 +0000 Subject: [PATCH] update website --- docs/tutorial.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial.html b/docs/tutorial.html index c088823a3ba..823b9313b46 100644 --- a/docs/tutorial.html +++ b/docs/tutorial.html @@ -72,7 +72,7 @@

Fetching real data #

Fetching data from Rotten Tomatoes's API isn't really relevant to learning React Native so feel free to breeze through this section.

Add the following constants to the top of the file (typically below the requires) to create the REQUEST_URL used to request data with.

/** * For quota reasons we replaced the Rotten Tomatoes' API with a sample data of - * their very own API that lives in React Native's Gihub repo. + * their very own API that lives in React Native's Github repo. */ var REQUEST_URL = 'https://raw.githubusercontent.com/facebook/react-native/master/docs/MoviesExample.json';

Add some initial state to our application so that we can check this.state.movies === null to determine whether the movies data has been loaded or not. We can set this data when the response comes back with this.setState({movies: moviesData}). Add this code just above the render function inside our React class.

getInitialState: function() { return {