hook-use-previous
Advanced tools
Comparing version 1.0.0 to 1.0.1
import {useRef, useEffect} from 'react'; | ||
// eslint-disable-next-line no-restricted-syntax | ||
export default function usePrevious(value) { | ||
@@ -5,0 +4,0 @@ const ref = useRef(); |
{ | ||
"name": "hook-use-previous", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "usePrevious hook to easily get previous value of the variable", | ||
@@ -9,3 +9,3 @@ "main": "index.js", | ||
}, | ||
"author": "", | ||
"author": "Lukas Liesis", | ||
"license": "ISC", | ||
@@ -12,0 +12,0 @@ "dependencies": { |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
730
3
1
1
16
8