useToggle

Can be used together with components using controlled state



Usage

useToggle returns methods to activate and deactivate elements in your code and their current value. One of the examples where it works can be components like Modal.

Arguments and return value

Previous