@utilityjs/use-get-latest
Version:
A React hook that stores & updates `ref.current` with the most recent value.
30 lines (29 loc) • 708 B
JSON
{
"name": "@utilityjs/use-get-latest",
"version": "1.0.2",
"description": "A React hook that stores & updates `ref.current` with the most recent value.",
"sideEffects": false,
"module": "./esm/index.js",
"main": "./index.js",
"types": "./index.d.ts",
"license": "MIT",
"repository": {
"type": "git",
"url": "git@github.com:mimshins/utilityjs.git",
"directory": "src/useGetLatest"
},
"homepage": "https://github.com/mimshins/utilityjs/tree/main/src/hook/useGetLatest",
"peerDependencies": {
"react": ">=16.8"
},
"keywords": [
"javascript",
"typescript",
"react",
"react hook",
"ref",
"useref",
"update ref",
"latest ref value"
]
}