Skip to content

liringlas/react-match-mq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple media query matching component

IE10+ because of window.matchMedia(...)

Usage:

npm i --save react-match-mq

OR

yarn add react-match-mq

Simple true/false rendering.

import { Media } from 'react-match-mq';
...
<Media query={"(min-width: 1024px)"}>
    {matches =>
        matches ? (
            "It matches!"
        ) : (
            "Doesnt match"
        )
    }
</Media>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published