deku-media-query
v1.1.1
Published
Media query component for Deku
Downloads
6
Readme
deku-media-query
Media query component for Deku
Install
$ npm install deku-media-query
Usage
import MediaQuery from 'deku-media-query';
const render = () => (
<MediaQuery query='(min-width: 1280px)' class='Unicorn'>
<div><img src='cat.jpg' alt=''/></div>
<div><img src='unicorn.jpg' alt=''/></div>
</MediaQuery>
);
export default {render};
License
MIT © Kevin Mårtensson