ReasonReact: use DOM API and hooks to detect click outside
Implementing a custom hook to determine click outside of an element using the DOM API and a couple of built-in hooks
Tags: reason, react, hooks, clickoutside