import { Dispatch, SetStateAction } from 'react'; /** * Custom hook to manage a boolean state with utility functions to set it to true, false, or toggle its value. * * @param {boolean} [defaultValue=false] - The initial value of the boolean state. * * @example * const { value, onTrue, onFalse, onToggle } = useBoolean(false); * * return ( *
Value: {value.toString()}
* * * *