infinite-autocomplete
The infinite-autocomplete component is like all these autocomplete out there, except that he is "Infinite" - which means that scrolling will fetch more data
Ease of use, written totally in Pure Functional Programming mindset!
Live Demo

Popular Frameworks Wrappers
Install
npm i -S infinite-autocomplete
Usage
; // Static data source; // Dynamic data source;
InfiniteAutocomplete function is also a curried function! which means that we can set a specific configuration and render the autocomplete with these configurations for multiple DOM nodes!
const citiesInfinite = ; // Some pageconst firstCities = ; // Another page; // You can update the options by passing the new slice into setStatefirstCities; // You can destroy the component by calling destroyfirstCities;
Options
/** * current value */ value?: string; /** * data source */ data?: IOption | Promise<IOption>; /** * Chunk fetch size */ fetchSize?: number /** * on-select event output handler when choosing an option */ onSelect?IOption;}
Where IOption
stands for =>