"# useToggler-react-hook" Use the useState() hook to create the value state variable and its setter. Create a function that toggles the value of the value state variable and memoize it, using the useCallback() hook. Return the value state variable and the memoized toggler function.
-
Notifications
You must be signed in to change notification settings - Fork 0
aozoragh/useToggler-react-hook
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
About
Provides a boolean state variable that can be toggled between its two states.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published