Infinite Scroll
Simple infinite scroll component. You have fully control over the loading spinner and IntersectionObserver API.
Installation
1
Paste this code into your project
2
Update import paths as needed
Properties
Property | Type | Default |
---|---|---|
*isLoading | boolean | |
*hasMore | boolean | |
*next | () => unknown | |
threshold | number | 1 |
root | number | null |
rootMargin | string | 0px |
reverse | boolean | false |
children | ReactNode | undefined |