🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

react-use-rect

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-use-rect - npm Package Compare versions

Comparing version

to
2.0.2

2

package.json
{
"name": "react-use-rect",
"version": "2.0.1",
"version": "2.0.2",
"description": "Hook that is aiming to help you on tracking a DOM element boundaries",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -118,3 +118,3 @@ # react-use-rect

const [top, setTop] = useState<number | null>(null);
const [rectRef, revalidate] = useRect((setTop) => setBottom(rect.top));
const [rectRef, revalidate] = useRect((rect) => setTop(rect.top));
useWindowOn('scroll', () => revalidate());

@@ -121,0 +121,0 @@