Skip to content

Instantly share code, notes, and snippets.

@leofab86
Last active May 17, 2019 05:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leofab86/390a21eb2740d90121d8ebd83e6070ae to your computer and use it in GitHub Desktop.
Save leofab86/390a21eb2740d90121d8ebd83e6070ae to your computer and use it in GitHub Desktop.
Fuzzy search autocomplete v1.0.0
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