Skip to content

nonoroazoro/react-fxxking-hooks

Repository files navigation

react-fxxking-hooks

Collection of React Hooks.

Install

npm i -S react-fxxking-hooks

Hooks

  • DOM

    • useHover — Tracks the hover state via mouseenter and mouseleave.
    • useScroll — Tracks the scroll state, supports debounce.
    • useShadowRoot — Creates a shadow DOM tree for a DOM element.
  • State

  • Timer

    • useInterval — Hooks version of setInterval.
    • useTimeout — Hooks version of setTimeout.
    • useTimer — Advanced timer which supports both interval and timeout.