Collection of React Hooks.
yarn add malhooks
-
useFavicon
— sets favicon of the page. -
useInterval
— declarative setInterval. -
useKeyPress
— tracks keys. -
useLocalStorage
— manages a value in localStorage. -
useLockBodyScroll
— locks scrolling of the body element. -
useOnClickOutside
— triggers callback when user clicks outside target area. -
usePreferredTheme
— returns preferred theme. -
usePrevious
— returns the previous state or props. -
useTitle
— sets title of the page.