import { useBoolean } from "https://deno.land/x/netzo@0.4.72/deps/usehooks-ts.ts";
Custom hook for handling boolean state with useful utility functions.
Examples
const { value, setTrue, setFalse, toggle } = useBoolean(true);
const { value, setTrue, setFalse, toggle } = useBoolean(true);
console.log(value); // true setFalse(); console.log(value); // false toggle(); console.log(value); // true