Listen for Clicks outside of Components
"react-cool-onclickoutside is a React hook to trigger callback when user clicks outside of the target component(s) area.
It's useful to dismiss dropdown menus, modals or tooltips etc."
Welly Shen
@welly_shen