Browse Source
Merge pull request #287 from djpowers/patch-1
Add missing variable in AJAX FAQ example
main
Brian Vaughn
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
content/docs/faq-ajax.md
|
|
@ -55,7 +55,7 @@ class MyComponent extends React.Component { |
|
|
|
} |
|
|
|
|
|
|
|
render() { |
|
|
|
const { error, items } = this.state; |
|
|
|
const { error, isLoaded, items } = this.state; |
|
|
|
if (error) { |
|
|
|
return <div>Error: {error.message}</div>; |
|
|
|
} else if (!isLoaded) { |
|
|
|