cixel-hooks
v0.0.1
Published
A growing collection of React hooks — by the cixel.com.au team
Downloads
9
Readme
cixel-hooks
A growing collection of custom React hooks, built by Cixel.
Installation
[!IMPORTANT] This package is not yet published to NPM.
Usage example
[!TIP] The
useEventListener
hook attaches towindow
ordocument
based on the event ifref
is omitted.
import { useEventListener } from 'cixel-hooks'
function Component() {
useEventListener('resize', onResize)
}