diff --git a/README.md b/README.md index 781b8b6..3142fea 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,12 @@ const Orientation = createMediaMatcher({ landscape: '(orientation: landscape)', }); -; +const height = Orientation.useMedia({ + portrait: "50vw", + landscape: "50vw" +}); +; +; ``` ### More examples of usage @@ -143,7 +148,7 @@ import { MediaMatcher, ProvideMediaMatchers } from 'react-media-match'; will be rendered on mobile and tablet will be rendered on mobile, tablet and desktop - + {' '} // will provide matches information via render-props @@ -199,7 +204,7 @@ react-media-match provides an API for "default" queries, and a factory method to - `Matcher` - `Provider` - `Mock` - - `SSR` + - `ServerRender` - `Consumer` ## Default API