Skip to content

Provides a boolean state variable that can be toggled between its two states.

Notifications You must be signed in to change notification settings

aozoragh/useToggler-react-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

"# 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.

About

Provides a boolean state variable that can be toggled between its two states.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published