UNPKG

react-is-mounted-hook

Version:

React hook to check if the component is still mounted

45 lines (44 loc) 1.02 kB
{ "name": "react-is-mounted-hook", "version": "1.1.2", "description": "React hook to check if the component is still mounted", "keywords": [ "react", "hook", "component", "mounted" ], "license": "MIT", "repository": { "type": "git", "url": "https://github.com/hupe1980/react-is-mounted-hook" }, "main": "lib/index.js", "types": "lib/index.d.ts", "files": [ "lib" ], "scripts": { "build": "rimraf lib && tsc", "build:watch": "rimraf lib && tsc -w", "test": "jest", "prepare": "npm run build" }, "peerDependencies": { "react": "^16.8.6 || ^17", "react-dom": "^16.8.6 || ^17" }, "devDependencies": { "@types/jest": "^26.0.22", "@types/react": "^17.0.2", "@types/react-dom": "^17.0.2", "jest": "^26.6.3", "react": "^17.0.2", "react-dom": "^17.0.2", "@testing-library/react-hooks": "^5.1.1", "react-test-renderer": "^17.0.2", "rimraf": "^3.0.0", "ts-jest": "^26.5.4", "typescript": "^4.2.3" } }