Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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