use-dismiss (npm): React hook that triggers a callback when user clicks outside the element.
Keywords: react|hooks|react-hooks|click outside|onclickoutside|click|escape|dismiss|domout|document|browser|callback|clickaway|escape-key|hook