UNPKG

@gitgw/use-before-leave

Version:

React Hook to execute a function when the mouse leaves the page. Useful to show a popup or for analytics.

30 lines (29 loc) 718 B
{ "name": "@gitgw/use-before-leave", "version": "1.0.5", "description": "React Hook to execute a function when the mouse leaves the page. Useful to show a popup or for analytics.", "main": "index.js", "repository": { "type": "git", "url": "git+https://github.com/GitHubGW/react-hook-npm.git" }, "keywords": [ "react", "react-hooks", "hooks", "beforeleave", "usebeforeleave", "leave", "mouseleave" ], "author": "GW", "license": "MIT", "bugs": { "url": "https://github.com/GitHubGW/react-hook-npm/issues" }, "homepage": "https://github.com/GitHubGW/react-hook-npm#readme", "peerDependencies": { "react": "^17.0.2", "react-dom": "^17.0.2" } }