use-deferred-state
Version: 
A React hook for deferring state change. That's essential when your UI needs to wait for disappearing animation is complete to unmount component.
53 lines (52 loc) • 1.6 kB
JSON
{
  "name": "use-deferred-state",
  "version": "1.0.2",
  "description": "A React hook for deferring state change. That's essential when your UI needs to wait for disappearing animation is complete to unmount component.",
  "main": "dist/useDeferredState.js",
  "repository": "https://github.com/phytonmk/useDeferredState",
  "author": "Mikhail Kryuchkov <phytonmk@gmail.com> (https://github.com/phytonmk)",
  "license": "MIT",
  "private": false,
  "keywords": [
    "delay",
    "state",
    "use-deffered",
    "use-delay",
    "use-state",
    "react-native",
    "react"
  ],
  "files": [
    "dist"
  ],
  "devDependencies": {
    "@babel/cli": "^7.13.0",
    "@babel/core": "^7.13.8",
    "@babel/preset-env": "^7.13.8",
    "@babel/preset-typescript": "^7.13.0",
    "@types/react": "^17.0.2",
    "@types/react-dom": "^17.0.1",
    "@typescript-eslint/eslint-plugin": "^4.15.2",
    "@typescript-eslint/parser": "^4.15.2",
    "eslint": "^7.20.0",
    "eslint-config-prettier": "^8.1.0",
    "eslint-plugin-react": "^7.22.0",
    "eslint-plugin-react-hooks": "^4.2.0",
    "parcel-bundler": "^1.12.4",
    "react": "^17.0.1",
    "react-dom": "^17.0.1",
    "typescript": "^4.2.2"
  },
  "peerDependencies": {
    "react": ">=16.8"
  },
  "scripts": {
    "start": "parcel ./example/index.html ./build",
    "build": "rm -rf dist && npm run build:tsc && npm run build:babel",
    "build:babel": "babel src --out-dir dist --extensions .ts",
    "build:tsc": "tsc --project tsconfig.json",
    "lint": "eslint .",
    "format": "prettier --write '**/*.*'",
    "prepublish": "npm run build"
  }
}