Skip to content

Latest commit

 

History

History
4 lines (4 loc) · 283 Bytes

README.md

File metadata and controls

4 lines (4 loc) · 283 Bytes

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