vipo-react-utils
v1.1.3
Published
Custom React hooks and other utils made by Vipo Nordic
Readme
vipo-react-utils
useToggle:
useState but for boolean with toggle functions. returns value and toggle. Toggle can pass a bool to force state.
useTimeout:
hook for using setTimeout. Returns reset and clear.
useDebounce
Do an action, but only after a given delay. (Nice for autocompletes or search fields, or validations)
useUpdateEffect
useEffect, but first effect is disabled.
useArray
useState, but for arrays. Returns the array, set, push, filter, update, remove and clear.
