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

@schibstedspain/sui-react-hooks

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@schibstedspain/sui-react-hooks - npm Package Compare versions

Comparing version 1.8.0 to 1.9.0

lib/useMediaQuery/index.js

9

CHANGELOG.md

@@ -5,2 +5,11 @@ # Change Log

# 1.9.0 (2020-02-24)
### Features
* useMediaQuery hook ([2781d00](https://github.com/SUI-Components/schibsted-spain-components/commit/2781d00d4996903de7d396137bd99857f6d74812))
# 1.8.0 (2020-02-21)

@@ -7,0 +16,0 @@

1

lib/index.js

@@ -8,2 +8,3 @@ export default function ReactHooks() {

}
export { default as useMediaQuery } from './useMediaQuery';
export { default as useLegacyState } from './useLegacyState';

@@ -10,0 +11,0 @@ export { default as useMount } from './useMount';

2

package.json
{
"name": "@schibstedspain/sui-react-hooks",
"version": "1.8.0",
"version": "1.9.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -141,2 +141,18 @@ # ReactHooks

### useMediaQuery
This is a CSS media query hook for React. It listens for matches to a CSS media query. It allows the rendering of components based on whether the query matches or not.
Hook `useMediaQuery` always returns a boolean and it indicates if query matches or not.
```js
import {useMediaQuery} from '@schibstedspain/sui-react-hooks'
export default function Demo() {
const isMatching = useMediaQuery('(min-width:600px)');
return <span>{`(min-width:600px) matches: ${isMatching}`}</span>;
}
```
> **Find full description and more examples in the [demo page](#).**
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