open-index/open-npm huggingface dataset:
npm package: @maroun-baydoun/use-media-query
Description: Listen to media query matches in React
Author: Maroun Baydoun
Latest version: 1.0.0

## @maroun-baydoun/use-media-query
##### Listen to media query matches in React

[![npm version](https://badge.fury.io/js/%40maroun-baydoun%2Fuse-media-query.svg)](https://badge.fury.io/js/%40maroun-baydoun%2Fuse-media-query)


#### Install

```
npm i @maroun-baydoun/use-media-query
```
Or

```
yarn add @maroun-baydoun/use-media-query
```

> expects  `react >= 16.8.0` to be installed as a peer dependency.

#### Use

```ts
import useMediaQuery from "@maroun-baydoun/use-media-query";

const MyComponent = () => {

    const matches = useMediaQuery("only screen and (min-width: 1024px)");

    return matches ? "It matches!" : "No match (yet)";
}
```

#### Browser Compatibility

This library relies on the `window.matchMedia` API. Compatible browsers can be found  [here](https://caniuse.com/#feat=matchmedia "Can I use matchMedia?").
npm package: @marowark/ionic-react-test-utils
Description: Test utilities for Ionic React
Author: torres.nicolas.mauro@gmail.com
Latest version: 0.0.5

# Ionic React Test Utils

This is a set of helper methods to make testing easier in Ionic React with React Testing Library and Jest.

## Custom ionFireEvent

`ionFireEvent` extends [Testing Library's](https://testing-library.com/docs/dom-testing-library/api-events) `fireEvent` by adding the custom `ion*` events. This can be used as a drop in replacement for `fireEvent` or used in conjunction with.
forked from [ionic-team/ionic-react-test-utils](https://github.com/ionic-team/ionic-react-test-utils)

```javascript
import { ionFireEvent as fireEvent } from '@ionic/react-test-utils';

...


fireEvent.ionChange(element, 'my text');
```

## mockIonicReact

This method mocks out certain Ionic components that have issues rendering in JSDOM. To use it, open up `setupTests.ts` and add this to the file:

```javascript
import { mockIonicReact } from "@ionic/react-test-utils";
mockIonicReact();
```