UNPKG

react-use-mounted

Version:

React hook for checking if the component is mounted.

30 lines (29 loc) 700 B
{ "name": "react-use-mounted", "repository": "github:fabiospampinato/react-use-mounted", "description": "React hook for checking if the component is mounted.", "version": "2.0.0", "type": "module", "main": "dist/index.js", "exports": "./dist/index.js", "types": "./dist/index.d.ts", "scripts": { "clean": "tsex clean", "compile": "tsex compile", "compile:watch": "tsex compile --watch", "prepublishOnly": "npm run clean && npm run compile" }, "keywords": [ "react", "hook", "mounted" ], "peerDependencies": { "react": ">= 16.6" }, "devDependencies": { "@types/react": "^18.0.8", "tsex": "^1.1.2", "typescript": "^4.6.4" } }