Skip to content

Commit d3e8a72

Browse files
committed
Update README
1 parent 2e81455 commit d3e8a72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class App extends React.Component {
8484

8585
The `render` prop is never called if the query does not match.
8686

87-
`<Media query>` also accepts an object, similar to React's built-in support for CSS style objects in e.g. `<div style>`. These objects are converted to CSS media queries via [json2mq](https://github.com/akiran/json2mq/blob/master/README.md#usage).
87+
`<Media query>` also accepts an object, similar to [React's built-in support for inline style objects](https://facebook.github.io/react/tips/inline-styles.html) in e.g. `<div style>`. These objects are converted to CSS media queries via [json2mq](https://github.com/akiran/json2mq/blob/master/README.md#usage).
8888

8989
```js
9090
import React from 'react'
@@ -107,6 +107,6 @@ class App extends React.Component {
107107
}
108108
```
109109

110-
Please see the [json2mq docs](https://github.com/akiran/json2mq/blob/master/README.md#usage) for more examples of queries you can construct using objects.
110+
Keys of media query objects are camel-cased and numeric values automatically get the `px` suffix. See the [json2mq docs](https://github.com/akiran/json2mq/blob/master/README.md#usage) for more examples of queries you can construct using objects.
111111

112112
That's it :) Enjoy!

0 commit comments

Comments
 (0)