JSPM

Found 63 results for rooks

@rooks/use-key

Keyboard key handler hook for react

  • v4.11.2
  • 65.71
  • Published

@rooks/use-boundingclientrect-ref

A hook that tracks the boundingclientrect of an element. It returns a callbackRef so that the element node if changed is easily tracked.

  • v4.11.2
  • 50.88
  • Published

@rooks/use-previous

Access the previous value of a variable with this React hook

  • v4.11.2
  • 50.76
  • Published

@rooks/use-raf

A continuously running requestAnimationFrame hook for React

  • v4.11.2
  • 43.29
  • Published

@rooks/use-fork-ref

A hook that can combine two refs(mutable or callbackRefs) into a single callbackRef

  • v4.11.2
  • 42.61
  • Published

@rooks/use-in-view-ref

Simple hook that monitors element enters or leave the viewport.

  • v4.11.2
  • 41.55
  • Published

@rooks/use-keys

A hook which allows to setup callbacks on multiple keypresses at the same time

  • v4.11.2
  • 37.73
  • Published

react-rooks

Store management for React and React Native with simple hooks !

  • v2.0.2
  • 33.85
  • Published

@rooks/use-countdown

Count down to a target timestamp and call callbacks every second (or provided peried)

  • v4.11.2
  • 33.66
  • Published

@rooks/use-time-ago

A React Hook to get time ago for timestamp millisecond value

  • v4.11.2
  • 31.66
  • Published

@rooks/use-previous-immediate

usePreviousImmediate returns the previous value of a variable even if it was the same or different

  • v4.11.2
  • 26.97
  • Published

@rooks/use-undo-state

Drop in replacement for useState hook but with undo functionality.

  • v4.11.2
  • 24.03
  • Published

@rooks/use-isomorphic-effect

Resolves to useEffect when window is not in scope and useLayout effect in the browser

  • v4.11.2
  • 22.31
  • Published

@rooks/use-selectable-list

Easily select a single value from a list of values. very useful for radio buttons, select inputs etc.

  • v4.11.2
  • 19.71
  • Published

@rooks/use-key-ref

Very similar to useKey but it returns a ref

  • v4.11.2
  • 19.40
  • Published

@rooks/use-map-state

A react hook to manage state in a key value pair map.

  • v4.11.2
  • 16.16
  • Published

@rooks/use-fresh-ref

Avoid stale state in callbacks with this hook. Auto updates values using a ref.

  • v4.11.2
  • 15.62
  • Published