Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/askbeka/react-trie-search
react search component consuming trie for efficent search
https://github.com/askbeka/react-trie-search
Last synced: 4 days ago
JSON representation
react search component consuming trie for efficent search
- Host: GitHub
- URL: https://github.com/askbeka/react-trie-search
- Owner: askbeka
- Created: 2016-11-02T15:16:02.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-12T13:07:55.000Z (almost 8 years ago)
- Last Synced: 2024-10-18T11:50:47.194Z (about 1 month ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-trie-search
react search component consuming trie for efficent search## Usage
#### Consuming array of strings
```
import Search from 'react-trie-search';render() {
return console.log(result)}}/>
}
```#### Consuming array of objects
```
import Search from 'react-trie-search';const getter = ({value}) => value;
render() {
return console.log(result)}}/>
}
```#### Consuming Trie instance
```
import Search, {Trie} from 'react-trie-search';const getter = ({value}) => value;
const trie = new Trie([{id: 0, value: 'some value'}, {id: 1, value: 'some value 1'}], getter);
render() {
return console.log(result)}}/>
}
```