Skip to content

Handles the event of clicking inside the wrapped component.

Notifications You must be signed in to change notification settings

aozoragh/useClickInside-react-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

"# useClickInside-react-hook" Create a custom hook that takes a ref and a callback to handle the 'click' event. Use the useEffect() hook to append and clean up the click event. Use the useRef() hook to create a ref for your click component and pass it to the useClickInside hook.

About

Handles the event of clicking inside the wrapped component.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published