react-fxxking-hooks

Collection of React Hooks.

Usage no npm install needed!

<script type="module">
  import reactFxxkingHooks from 'https://cdn.skypack.dev/react-fxxking-hooks';
</script>

README

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.