react-cool-inview
useInfiniteLoading
Our great sponsors
react-cool-inview | useInfiniteLoading | |
---|---|---|
1 | 1 | |
1,461 | 8 | |
- | - | |
3.9 | 1.8 | |
9 months ago | over 2 years ago | |
TypeScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
react-cool-inview
-
React Hooks for infinite scroll: An advanced tutorial
As the purpose of this article is infinite loading, we’re not going to go into the implementation details of the Intersection Observer API, and instead use an existing React Hook that provides that functionality for us, react-cool-inview.
useInfiniteLoading
-
React Hooks for infinite scroll: An advanced tutorial
I highly encourage you to play around with the code provided in this repo and use it as a starting point for your own infinite loading Hook. It provides all of the code we’ve talked about in this article: a fully featured useInfiniteLoading Hook, including all extra features like manual infinite loading, partial infinite loading, infinite infinite loading, and conditional pre-fetching.
What are some alternatives?
react-cool-virtual - 😎 ♻️ A tiny React hook for rendering large datasets like a breeze.
react-intersection-observer - React implementation of the Intersection Observer API to tell you when an element enters or leaves the viewport.
svelte-inview - A Svelte action that monitors an element enters or leaves the viewport.🔥
react-awesome-reveal - React components to add reveal animations using the Intersection Observer API and CSS Animations.
use-local-storage-state - React hook that persists data in localStorage
animate-css-grid - Painless transitions for CSS Grid
use-change - The most minimalistic React state management library on the market with zero dependencies and React.useState-like syntax
tools - Various cli tools for Polkadot and Substrate chains, including basic node monitoring, making API queries via a cli app and other command-line tools
react-lazy-io - ⚛️ react lazy load component using one intersection observer.
use-scroll-direction - A simple, performant, and cross-browser hook for detecting scroll direction in your next react app.
react-on-screen - Check if a react component in the viewport