use-dismiss. The 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.

github.com/brandonpittman/use-dismiss

Vaya's read on this project

Problem, audience, market, and the verdict — sign in to see it.

Updates

No recent activity.