pair-question-anhnk-22 (npm): React component and hook which listens to the beforeunload window event.
Keywords: beforeunload|component|event|hook|onbeforeunload|react|unload|window