brandonpittman / use-dismiss Goto Github PK
View Code? Open in Web Editor NEWThe useDismiss() hook for React takes a callback, returns a ref, and invokes the callback when a click event occurs outside the ref's bounds, when the escape key is pressed, or both.