useClickAway() reacts to clicks outside the bound element, and calls the expression that is passed in when this event is detected. Suppose you're working on a Modal component that renders a dialog box ...