react-use-click-away (npm): a custom React effect for clicking away to close dropdowns
Keywords: clickaway|react|hook|effects|hooks