Open Packages

use-toggle-state

A useState like hook for boolean values that returns the state, and a ToggleStateAction instead of a SetStateAction that all the setState callback to be called without passing any arguments to simply toggle the boolean value.

1.1.3 • Published 3 years ago