React List Throttle
Super simple component just throttle a list to reduce rendering cost of long list.
Installation
$ npm i react-list-throttle-component
or yarn add
Usage
ListThrottle has no
; // ... return <ListThrottle items=strs> <SomeAwesomeComponentSupportsScroll superHandlerCatchOnScrollTop=renderPrevItems superHandlerCatchOnScrollEnd=renderNextItems > <ul> throttledItems
ListThrottle has no actual DOM but only functionality.
And also, there is no functionality supports handling onScroll
event. So if you would like to implement a component works like infinite scroller
you just need to implement the handler by yourself.
API
Licensed
MIT