Too Long; Didn't Read
React hook is a React hook to trigger callback when user clicks outside of the target component(s) area. It's a useful logic for UI interaction design (IxD) like dismiss a dropdown menu, modal or tooltip etc. Uses passive event listeners to improve scrolling performance. Ignores certain elements during the event loop by the ignore-onclickoutside CSS class name. Disabling the event listener is a feature that can only be set as true once you set it as true, the callback won't be triggered.