react-before-leave (npm): React component and hook which listens to `beforeunload` on the window when mounted.
Keywords: beforeunload|component|event|hook|onbeforeunload|react|unload|window