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

@react-hook/resize-observer

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-hook/resize-observer - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"name": "@react-hook/resize-observer",
"version": "1.0.2",
"version": "1.0.3",
"homepage": "https://github.com/jaredLunde/react-hook/tree/master/packages/resize-observer#readme",

@@ -5,0 +5,0 @@ "repository": "github:jaredLunde/react-hook",

@@ -58,5 +58,5 @@ <hr>

if (!size && target) {
setSize(target.getBoundingClientRect())
}
React.useLayoutEffect(() => {
setSize(target.current.getBoundingClientRect())
}, [target])

@@ -72,3 +72,3 @@ // Where the magic happens

return (
<pre ref={setTarget}>
<pre ref={target}>
{JSON.stringify({width: size.width, height: size.height}, null, 2)}

@@ -75,0 +75,0 @@ </pre>

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