# react-media-query

> Media queries for react.js components.

Latest version **0.1.0** (published 2014-10-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-media-query
pnpm add react-media-query
yarn add react-media-query
bun add react-media-query
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2014-10-19 |
| First published | 2014-10-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10 |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Daniel Leitner |
| Maintainers | panquish |
| Keywords | reactjs, react, media, query, media-query, css, responsive |

## Links

- npm: https://www.npmjs.com/package/react-media-query
- Repository: https://github.com/panquish/react-media-query
- Issues: https://github.com/panquish/react-media-query/issues
- npm.io page: https://npm.io/package/react-media-query

## Dependencies (1)

- [react](https://npm.io/package/react.md) ^0.11.2

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2014-10-19

## README

# react-media-query

Simple media queries for react.js components.

This component isn't ready to use yet. Please open a issue for any issues you find and feel free to contribute to this component.

## Installation

```
npm install react-media-query --save
```

## Component Usage

Require the package into your jsx file.
```javascript
var MediaQuery = require('react-media-query');
```

To use the component you have to add a query prop, which contains your media query. If the query matches the media query the component will be shown.
```javascript
<MediaQuery query="max-width: 640px">
    Showed when media query is matched.
</MediaQueery>
```

For a detailed example please have a look into the examples folder.

## Changelog

**0.1.0**
* Initial package release.

---
_Source: https://npm.io/package/react-media-query · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
