useToggleWorks as useState but only used for toggling boolean value.import { useToggle } from "@trakas/react"; function ToggleButton() { const [value, toggleValue] = useToggle(); return <button onClick={toggleValue}>{value ? "On" : "Off"}</button>;}CopyOptions#const [value, toggleValue] = useToggle(initialValue);CopyinitialValue: booleanOptionalDefaults to falseSet this value to change default toggle valueReturns#toggleValue: () => voidSwitch value from true to false and otherwisevalue: booleanThe last state of toggle value