@jacob-hooks/use-before-leave
Version:
React Hook to execute a function when the mouse leaves the page. Useful to show a popup or for analytics.
27 lines (26 loc) • 716 B
JSON
{
"name": "@jacob-hooks/use-before-leave",
"version": "1.0.7",
"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": "https://github.com/jacobkosmart/custom-hooks.git",
"keywords": [
"react",
"hooks",
"leave",
"beforeleave",
"unload",
"mouseleave",
"usebeforeleave"
],
"author": "Jacob Ko <jacobkosmart@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/jacobkosmart/custom-hooks/issues"
},
"homepage": "https://github.com/jacobkosmart/custom-hooks#readme",
"peerdependencies": {
"react": "^17.0.2",
"react-dom": "^17.0.2"
}
}