New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hook-use-previous

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hook-use-previous - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

README.md

1

index.js
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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc