Last active
May 17, 2019 05:10
-
-
Save leofab86/830dc7f862e57764fbd95cfe06eda371 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
getSearchResults = () => { | |
const {searchTerm} = this.state; | |
return searchTerm ? this.searchEngine.search(searchTerm) : [] | |
// searchEngine.search is the expensive search algorithm | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment