You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,42 +33,42 @@ The UMD build is also available on [unpkg](https://unpkg.com):
33
33
34
34
You can find the library on `window.ReactMedia`.
35
35
36
-
## Hooks are coming soon!
36
+
## Hooks are coming soon!
37
37
38
-
Hooks are available in 2.X branch
38
+
Hooks are available in 2.X branch.
39
39
40
-
Install react-media@next to get it.
40
+
Install `react-media@next` to get it.
41
41
42
-
useMedia accepts a single options argument to handle both single and multiplie queries, so the same properties as Media are available (except of course render and children props).
42
+
`useMedia` accepts a single options argument to handle both single and multiplie queries, so the same properties as Media are available (except of course render and children props).
43
43
44
44
45
-
Simple usage with multiple queries :
45
+
Simple usage with multiple queries:
46
46
47
47
```tsx
48
-
import { useMedia } from'react-media'
48
+
import { useMedia } from'react-media';
49
49
50
50
const GLOBAL_MEDIA_QUERIES = {
51
51
small: "(max-width: 599px)",
52
52
medium: "(min-width: 600px) and (max-width: 1199px)",
0 commit comments