A React Hook for managing togglable states.
If you need to manage the rotation of multiple values (such as toggling between multiple languages or themes), it's recommended to use useCircularList.
Click links below to view source on GitHub.
It accepts one or two parameters:
bool: A boolean value, the initial state, which will toggle between true and false.
one, theOther: The two values between which the state will toggle.