UNPKG

use-context-hook

Version:

React hook for selective context subscriptions - Prevent unnecessary re-renders with Redux-like selectors for React Context

68 lines (67 loc) 2.01 kB
{ "name": "use-context-hook", "version": "2.0.6", "description": "React hook for selective context subscriptions - Prevent unnecessary re-renders with Redux-like selectors for React Context", "main": "dist/index.js", "map": "dist/index.js.map", "types": "dist/index.d.ts", "scripts": { "test": "jest", "tsc-test": "tsc --project .", "build": "tsc --project tsconfig.json", "example:single_str": "DIR=single_str webpack serve --open", "example:redux_based": "DIR=redux_based webpack serve --open", "example:obj_based": "DIR=obj_based webpack serve --open", "example:multiple_strs": "DIR=multiple_strs webpack serve --open", "audit:security": "bash scripts/audit-npm-security.sh" }, "jest": { "testEnvironment": "jsdom" }, "repository": { "type": "git", "url": "https://github.com/HussnainQuresshi/use-context-hook.git" }, "keywords": [ "react", "react-context", "context", "hooks", "use-context-hook", "use-context-selector", "context-selector", "react-hooks", "performance", "optimization", "re-render", "redux-selector", "typescript", "context-api" ], "author": "Hussnain Qureshi", "license": "MIT", "bugs": { "url": "https://github.com/HussnainQuresshi/use-context-hook/issues" }, "homepage": "https://github.com/HussnainQuresshi/use-context-hook#readme", "devDependencies": { "@babel/cli": "^7.1.5", "@babel/core": "^7.1.6", "@babel/preset-env": "^7.1.6", "@babel/preset-react": "^7.0.0", "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^14.0.0", "@types/react": "^18.2.13", "@types/react-dom": "^18.2.6", "babel-loader": "^9.1.2", "html-webpack-plugin": "^5.5.1", "jest": "^29.5.0", "react": "^18.2.0", "react-dom": "^18.2.0", "jest-environment-jsdom": "^29.5.0", "typescript": "^5.1.3", "webpack": "^5.85.0", "webpack-cli": "^5.1.1", "webpack-dev-server": "^4.15.0" } }