use-state-toggle
There a lot of similar libraries out there, but they only toggle `boolean` state. This hook allows you to toggle any state, by providing custom `truthy` or `falsy` values.
There a lot of similar libraries out there, but they only toggle `boolean` state. This hook allows you to toggle any state, by providing custom `truthy` or `falsy` values.