react-use-lazy-load-image
use-onclickoutside
react-use-lazy-load-image | use-onclickoutside | |
---|---|---|
2 | 1 | |
14 | 497 | |
- | - | |
0.0 | 2.4 | |
over 1 year ago | 5 months ago | |
JavaScript | TypeScript | |
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-use-lazy-load-image
-
5 Awesome React Hooks ⚛️
React use lazy load image uses the Intersection Observer API to provide a performant solution to lazy loading images, it a super lightweight so won't add any extra bulk to your app, and its very simple to use:
-
What are your favorite custom hooks?
useLazyLoadImage
use-onclickoutside
-
5 Awesome React Hooks ⚛️
I think that useOnClickOutside is one of the bests, with this hook, you can easily capture outside clicks from an element, very useful for a modal for example. Here is a demo code:
What are some alternatives?
react-in-viewport - Detect if React component is in viewport
use-local-storage-state - React hook that persists data in localStorage
react-script-hook - React hook to dynamically load an external script and know when its loaded
react-intersection-observer - React implementation of the Intersection Observer API to tell you when an element enters or leaves the viewport.
react-hookedup - :alien: A collection of useful React hooks
useRedux - Hook to connect redux store to react components
use-autocomplete - React use-autocomplete hook for autocomplete components
usehooks-ts - React hook library, ready to use, written in Typescript.
use-overflow - A React Hook that allows you to detect X and Y overflow
react-aptor - Make Forward compatible React packages🔮
react-screentype-hook - React hook to get screen type(mobile, tablet, desktop, largeDesktop)
use-hotkeys - ➷ Hotkeys React Hook