You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const [show, toggle] = useToggle(false);
const [show, on, off, toggle] = useSwitch(false); // not use var off
Expect:
const [show, toggle] = useToggleOrSet(false);
toggle(); // toggle the prevState
toggle(true); // change the state to true === on
toggle(false); // change the state to false === off
Now:
Expect:
maybe like this?
The text was updated successfully, but these errors were encountered: