UNPKG

@raddix/use-boolean

Version:

A hook that manages a boolean value with useful utility functions.

9 lines (7 loc) 182 B
interface Actions { toggle: () => void; on: () => void; off: () => void; } declare const useBoolean: (initValue?: boolean) => [boolean, Actions]; export { useBoolean };