A growing collection of React hooks — by the cixel.com.au team
npm install cixel-hooksA growing collection of custom React hooks, built by Cixel.
npm install cixel-hooks
> [!TIP]
> The useEventListener hook attaches to window or document based on the event if ref is omitted.
``jsx
import { useEventListener } from 'cixel-hooks'
function Component() {
useEventListener('resize', onResize)
}
``
- useCallbackOnce
- useCopyToClipboard
- useDelayedTouchEventListener
- useEffectOnce
- useEventListener
- useInView
- useInterval
- useMediaQuery
- useMergedRef
- usePrevious
- useMounted
- useScrollPosition
- useTimeUnitInterval
- useTimeout