Custom Packages

@sjblurton/use-toggle

useToggle will default to false on initialization, unless provided a initial boolean value. It will return an tuple array `[value, toggleValue]` of the value, and a callback function. The value will be true or false, and the function can set the value to

0.1.4 • Published 4 years ago