cixel-hooks
TypeScript icon, indicating that this package has built-in type declarations

0.5.0 • Public • Published

cixel-hooks

A growing collection of custom React hooks, built by Cixel.

Installation

npm install cixel-hooks

Usage example

[!TIP] The useEventListener hook attaches to window or document based on the event if ref is omitted.

import { useEventListener } from 'cixel-hooks'

function Component() {
  useEventListener('resize', onResize)
}

Available hooks

Package Sidebar

Install

npm i cixel-hooks

Weekly Downloads

0

Version

0.5.0

License

MIT

Unpacked Size

58 kB

Total Files

7

Last publish

Collaborators

  • sebhex