useToggleState
This hook tracks a boolean value and toggles between its two states.
This guide explains how to use the useToggleState hook.
For example, you can use this hook to display a checkbox or a Switch that toggles a Focus Modal.
Usage#
API Reference#
useToggleState Parameters#
Was this guide helpful?
useToggleState Return Value#
Was this guide helpful?