Return type of useBoolean hook.
The current boolean value.
Directly sets the boolean state.
Toggles the current value between true and false.
true
false
Sets the value to true.
Sets the value to false.
Resets the value back to the initial defaultValue.
defaultValue
Return type of useBoolean hook.