@nooks/use-prevent-leave (npm): React Hook to prompt the user for confirmation before leaving the page.
Keywords: react|hooks|beforeunload|onleave|save|changes|usepreventleave