Update ReactBasics.md

master
Matt Huntington 8 years ago committed by GitHub
parent 4eb61de947
commit 78581a9bb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -808,7 +808,7 @@ React doesn't have any built-in functionality to handle AJAX. Either use jQuery
```JavaScript
queryOMDB(event){
event.preventDefault();
fetch('http://www.omdbapi.com/?t=' + this.refs.title.value).then(function(response){
fetch('http://www.omdbapi.com/?apikey=53aa2cd6&t=' + this.refs.title.value).then(function(response){
response.json().then(function(data){
console.log(data);
});

Loading…
Cancel
Save