Skip to content
Tom Mitchelmore edited this page Aug 25, 2022 · 5 revisions

Welcome to the documentation of React Multitool

Hook Reference

useAsync - manages the lifecycle states of an async function

useClickAway - detects when clicking outside of an element, useful for modals and dialogues.

useClipboard - wrapper around the browser clipboard API

useCounter - a hook that counts up, with utilities such as looping and resetting.

useEvent - adds and manages event listeners on DOM elements

useHover - detects when a user's mouse is within a DOM element

useLocalData - an abstraction on useState that persists and retrieves data in localStorage

useMouse - returns the current mouse coordinates relative to the window or a DOM element

useOpen - a wrapper around useState for handling modals and other open-close design patterns.

usePrevious - holds the previous value of a variable

useQueue - a wrapper around useState implementing a Queue ADT

useScrollLock - utility hook to conditionally lock scrolling of the window or a scrollable DOM element.

useSet - a wrapper around useState implementing a state ADT

useStack - a wrapper around useState implementing a Stack ADT

Clone this wiki locally