Some hooks to handle states in a very easy way.
@jeact/hooks its a module made to avoid writing some repeating code in React, like the toggle functionality,
or the loading functionality.
npm i @jeact/hooks
boolean value, and two functions, one to make the boolean
true and another to make
Returns the same as
useBoolean, but this hook has a more-expressive name.
boolean value and a function to toggle the value between