Browse Source

Add missing variable in AJAX FAQ example

- include "isLoaded" in destructuring assignment
main
Dave Powers 7 years ago
committed by GitHub
parent
commit
ee516b8088
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      content/docs/faq-ajax.md

2
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) {

Loading…
Cancel
Save