UNPKG

@hudoro/hooks

Version:

Useful react hooks for HSD App

12 lines (10 loc) 313 B
import { Dispatch, SetStateAction } from 'react'; type UseBooleanReturn = { value: boolean; setValue: Dispatch<SetStateAction<boolean>>; setTrue: () => void; setFalse: () => void; toggle: () => void; }; export declare function useBoolean(defaultValue?: boolean): UseBooleanReturn; export {};