JSPM

Found 63 results for rooks

@rooks/use-key

Keyboard key handler hook for react

  • v4.11.2
  • 64.72
  • 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
  • 46.91
  • Published

@rooks/use-previous

Access the previous value of a variable with this React hook

  • v4.11.2
  • 45.96
  • Published

@rooks/use-raf

A continuously running requestAnimationFrame hook for React

  • v4.11.2
  • 43.45
  • Published

@rooks/use-in-view-ref

Simple hook that monitors element enters or leave the viewport.

  • v4.11.2
  • 41.37
  • Published

@rooks/use-keys

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

  • v4.11.2
  • 41.18
  • Published

@rooks/use-fork-ref

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

  • v4.11.2
  • 35.65
  • Published

@rooks/use-countdown

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

  • v4.11.2
  • 31.33
  • Published

@rooks/use-time-ago

A React Hook to get time ago for timestamp millisecond value

  • v4.11.2
  • 29.68
  • Published

@rooks/use-undo-state

Drop in replacement for useState hook but with undo functionality.

  • v4.11.2
  • 26.61
  • Published

@rooks/use-previous-immediate

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

  • v4.11.2
  • 25.75
  • Published

react-rooks

Store management for React and React Native with simple hooks !

  • v2.0.2
  • 20.57
  • 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
  • 10.44
  • Published

@rooks/use-fresh-ref

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

  • v4.11.2
  • 8.13
  • Published

@rooks/use-isomorphic-effect

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

  • v4.11.2
  • 7.16
  • Published

@rooks/use-map-state

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

  • v4.11.2
  • 2.68
  • Published