Skip to content

Instantly share code, notes, and snippets.

@leofab86
Last active May 20, 2019 12:11
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/9a64bd8e871f63b7bb8473f1084c1aeb to your computer and use it in GitHub Desktop.
Save leofab86/9a64bd8e871f63b7bb8473f1084c1aeb to your computer and use it in GitHub Desktop.
Fuzzy search autocomplete v1.1.0
//autocomplete.js
render () {
return (
<div>
<input
onChange={ e => this.setState({searchTerm: e.target.value})}
value={this.state.searchTerm}/>
<SearchResults
searchEngine={this.props.searchEngine}
searchTerm={this.state.searchTerm}/>
</div>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment