"# 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.
-
Notifications
You must be signed in to change notification settings - Fork 0
aozoragh/useClickInside-react-hook
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
About
Handles the event of clicking inside the wrapped component.
Topics
Resources
Stars
Watchers
Forks
Packages 0
No packages published