Skip to content

Commit

Permalink
Update AsyncTypeahead example code
Browse files Browse the repository at this point in the history
  • Loading branch information
ericgio committed Feb 25, 2020
1 parent f5c9bc1 commit 6d14e5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ An enhanced version of the normal `Typeahead` component for use when performing
```jsx
<AsyncTypeahead
isLoading={this.state.isLoading}
labelKey={option => `${option.login}`}
onSearch={(query) => {
this.setState({isLoading: true});
fetch(`https://api.github.com/search/users?q=${query}`)
Expand Down

0 comments on commit 6d14e5b

Please sign in to comment.