rh-hook
v0.0.1-alpha.1
Published
react hooks
Downloads
4
Readme
RH-hook
hook
useSetState
当state为对象时候, 只修改对象一个值, 就只传对应值即可, 不用全传输
{
"peerDependencies": {
"react": ">=16.0.0",
"react-dom": ">=16.0.0"
},
"dependencies": {
"react": ">=16.0.0",
"react-dom": ">=16.0.0"
}
}
"devDependencies": {
"@babel/core": "^7.11.1",
"@babel/preset-env": "^7.15.0",
"@babel/preset-react": "^7.10.4",
"@babel/preset-typescript": "^7.16.7",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^21.0.2",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"@types/react": "^18.0.17",
"@types/react-dom": "^18.0.6",
"@types/react-router-dom": "^5.1.8",
"@typescript-eslint/eslint-plugin": "^5.33.0",
"@typescript-eslint/parser": "^5.33.0",
"ahooks": "^3.1.4",
"autoprefixer": "^10.3.1",
"babel-core": "^6.26.3",
"babel-loader": "^8.1.0",
"clean-webpack-plugin": "^4.0.0-alpha.0",
"copy-webpack-plugin": "^9.0.1",
"cross-env": "^7.0.3",
"eslint-plugin-react-hooks": "^4.6.0",
"html-webpack-plugin": "^5.3.2",
"less": "^4.0.0",
"less-loader": "^8.0.0",
"mini-css-extract-plugin": "^1.6.1",
"postcss": "^8.4.16",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"react-router-dom": "^6.2.1",
"rh-js-methods": "^2.1.10",
"rh-mock": "^1.2.0",
"rollup": "^2.69.2",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-dts": "^4.2.0",
"rollup-plugin-eslint": "^7.0.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.31.2",
"style-loader": "^2.0.0",
"ts-loader": "^8.0.2",
"ts-node": "^10.9.1",
"typescript": "^4.2.0-beta",
"typescript-plugin-css-modules": "^3.4.0",
"webpack": "~5.48.0",
"webpack-cli": "^4.3.0",
"webpack-dev-server": "^3.11.2",
"webpack-merge": "^5.8.0"
}