@j-hooks/use-prevent-leave (npm): React Hook to prompt the user for confirmation before leaving the page. Useful when changes haven't been saved.
Keywords: react|hooks|beforeunload|onleave|save|changes|usepreventleave|npm-package|react-hooks