Last active
May 17, 2019 05:51
-
-
Save leofab86/390a21eb2740d90121d8ebd83e6070ae to your computer and use it in GitHub Desktop.
Fuzzy search autocomplete v1.0.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
render () { | |
return ( | |
<Autocomplete | |
value={this.state.searchTerm} | |
items={this.getSearchResults()} | |
renderMenu={this.reactVirtualizedList} | |
renderItem={this.renderItem} | |
getItemValue={ item => item.name } | |
onChange={(e, value) => this.setState({searchTerm: value})} | |
/> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment