Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-media-hook

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-media-hook - npm Package Compare versions

Comparing version 0.4.3 to 0.4.4

4

index.js

@@ -18,3 +18,5 @@ var React = require('react')

function useMedia (query) {
var result = React.useState(omitMatchMediaResult(fallbackMathMedia(query)))
var result = React.useState(function () {
return omitMatchMediaResult(fallbackMathMedia(query))
})
var setResult = result[1]

@@ -21,0 +23,0 @@

{
"name": "react-media-hook",
"version": "0.4.3",
"version": "0.4.4",
"description": "React Hook for media query",

@@ -17,3 +17,3 @@ "scripts": {

],
"limit": "186 B",
"limit": "188 B",
"path": "./index.js"

@@ -20,0 +20,0 @@ }

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