npm.io
1.1.3 • Published 4 years ago

vipo-react-utils

Licence
ISC
Version
1.1.3
Deps
0
Size
17 kB
Vulns
0
Weekly
0

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.

Keywords