# use-utils

> A utility react hooks which i use most commonly

Latest version **0.1.0** (published 2020-03-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install use-utils
pnpm add use-utils
yarn add use-utils
bun add use-utils
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2020-03-10 |
| First published | 2020-03-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 36.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Meet Patel |
| Maintainers | meet-patel |
| Keywords | react, react-hooks, util, use-utils, utility, hooks |

## Links

- npm: https://www.npmjs.com/package/use-utils
- Repository: https://github.com/mpmeetpatel/use-utils
- Homepage: https://github.com/mpmeetpatel/use-utils#readme
- Issues: https://github.com/mpmeetpatel/use-utils/issues
- npm.io page: https://npm.io/package/use-utils

## 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) — 2020-03-10

## README

<div align="center">
<h1>use-utils</h1>
<p>A utility hooks for react projects</p>
</div>

## Install

```
$ npm install use-utils
```

OR

```
$ yarn add use-utils
```

## Documentation

-   **[`useDebounce`](./docs/useDebounce.md)** &mdash; Debounce any value (primitive value, object etc) or debounce any function with custom delay.
    <br />

-   **[`useFetch`](./docs/useFetch.md)** &mdash; Utility which provides fetch API's as hook version.
    <br />

-   **[`useInfiniteScroll`](./docs/useInfiniteScroll.md)** &mdash; Infinite scroll functionality in hook form.
    <br />

-   **[`useNetworkStatus`](./docs/useNetworkStatus.md)** &mdash; Check online/offline status (your device is connected to internet or not).
    <br />

-   **[`usePrevValue`](./docs/usePrevValue.md)** &mdash; Store value which will used in next render (Kind of prevProps & prevState).
    <br />

-   **[`useSetState`](./docs/useSetState.md)** &mdash; Mimicking a class based setState function with hook.
    <br />

-   **[`useSetStateWithCallback`](./docs/useSetStateWithCallback.md)** &mdash; setState with callback (Note: we can mimick setState callback, read docs for more info why).
    <br />

-   **[`useToggle`](./docs/useToggle.md)** &mdash; Utility toggling state for any switch, modal, on/off functionality.
    <br />

-   **[`useWindowSizes`](./docs/useWindowSizes.md)** &mdash; Get current window sizes in any component.
    <br />

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