1.0.1 • Published 1 year ago
@bluframe/grapple v1.0.1
React Hooks from Blu Frame
React Hooks from Blu Frame
How to Install
If you are using yarn
yarn add @bluframe/grapple
And if you are using npm
npm i @bluframe/grapple
How to import
import usePrevious from "@bluframe/grapple/usePrevious"
or
import { usePrevious } from "@bluframe/blublocks"
Hooks
usePrevious
Stores the previous value of a constant
useOnScreen
Uses IntersectionObserver
and notifies when an element appears on screen
useTrimText
Trims text to max characters and adds ...
when content exceeds max