react-match-mq
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "react-match-mq", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Simple media query matching component", | ||
@@ -5,0 +5,0 @@ "main": "media.js", |
@@ -7,5 +7,15 @@ # Simple media query matching component | ||
### Usage: | ||
>npm i --save react-match-mq | ||
OR | ||
>yarn add react-match-mq | ||
Simple `true`/`false` rendering. | ||
```js | ||
import { Media } from 'react-match-mq'; | ||
... | ||
<Media query={"(min-width: 1024px)"}> | ||
@@ -12,0 +22,0 @@ {matches => |
6288
29