useVirtualList
Render only the rows of a long list that are in view, with fixed or variable row heights. Use it when a list has thousands of items and scrolling starts to lag.
- Level
- Advanced
- Since
- v2.1.0
import {useVirtualList} from '@zenuilabs/react-hooks';Loading demo_
More in Performance
PerformanceBasicuseDebounceReturn a copy of a value that only updates after it has stopped changing for a set time. Use it to wait for the user to pause before searching or saving.PerformanceIntermediateuseDebouncedCallbackWrap a function so it only runs after calls stop for a given delay. Use it for search inputs, autosave and resize handlers.PerformanceIntermediateuseThrottleReturn a copy of a fast-changing value that updates at most once per interval. Use it for scroll positions, pointer coordinates and other values that change many times a second.