# utils-react

> A React utils functions.

Latest version **1.2.0** (published 2023-12-07) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2023-12-07 |
| First published | 2022-11-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 21 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 16 |
| Author | Wesley Araújo |
| Maintainers | wesleyara |
| Keywords | react, typescript, javascript, and, utils. |

## Links

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

## Dependencies (4)

- [axios](https://npm.io/package/axios.md) ^1.2.0
- [jsdom](https://npm.io/package/jsdom.md) ^22.1.0
- [react](https://npm.io/package/react.md) ^18.2.0
- [rimraf](https://npm.io/package/rimraf.md) ^3.0.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

- 1.2.0 (latest) — 2023-12-07
- 1.1.0 — 2023-08-29
- 1.0.9 — 2023-08-24
- 1.0.8 — 2023-01-18
- 1.0.7 — 2023-01-18
- 1.0.6 — 2023-01-09
- 1.0.5 — 2022-12-29
- 1.0.4 — 2022-12-10
- 1.0.3 — 2022-12-06
- 1.0.2 — 2022-11-30
- 1.0.1 — 2022-11-29
- 0.6.0 — 2022-11-29
- 0.5.0 — 2022-11-29
- 0.4.0 — 2022-11-29
- 0.3.0 — 2022-11-29
- … 2 more at https://npm.io/package/utils-react/versions

## README

<h1 align="center" title="Vite Helper">
  utils-react
</h1>

<h2 align="center">utils-react provides important functions for react and vanilla javascript/typescript</h2>

[![Open Source Love](https://badges.frapsoft.com/os/v2/open-source.png?v=103)](https://github.com/ellerbrock/open-source-badges/)
[![MIT Licence](https://badges.frapsoft.com/os/mit/mit.png?v=103)](https://opensource.org/licenses/mit-license.php)
[![npm version](https://img.shields.io/npm/v/utils-react.svg?style=flat-square)](https://www.npmjs.com/package/utils-react)
[![npm downloads](https://img.shields.io/npm/dm/utils-react.svg?style=flat-square)](http://npm-stat.com/charts.html?package=cz-conventional-changelog&from=2015-08-01) <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --> [![All Contributors](https://img.shields.io/badge/all_contributors-2-green.svg?style=flat-square)](#contributors-) <!-- ALL-CONTRIBUTORS-BADGE:END -->

<h4 align="center">
 <a href="#-how-use">:rocket: How use</a> •
 <a href="#️-tools">🛠️ Tools</a> •
 <a href="#-contributing">:pencil: Contributing</a> •
 <a href="#-thanks">:adult: Thanks</a> •
 <a href="#-license">:page_facing_up: License</a>
</h4>

<br>

# :rocket: How use

Instalation:

```bash
npm install utils-react
#or
yarn add utils-react
```

Answer the questions (When choosing the tool, use the arrows keys to navigate, the spacebar to select and enter to finish)

# 🛠️ Tools

Example:

## upperFirst

Capitalize the first letter of the string.

```js
import { upperFirst } from "utils-react";

upperFirst("hello world"); // Hello world
```

## useDebounce

Debounce hook is used to minimize backend requests on inputs.

```js
import { useDebounce } from "utils-react";

const [value, setValue] = useState("");
const debouncedValue = useDebounce(value, 1000);

useEffect(() => {
  console.log(debouncedValue);
}, [debouncedValue]);
```

for more information, see the docs, [Vanilla](/docs/vanilla.md) and [React](/docs/react.md)

# :pencil: Contributing

Your contribution to the `utils-react` is essential for the evolution of the project, you can do it as follows:

- Open an [issue](https://github.com/wesleyara/utils-react/issues) to clear doubts, report bugs or give ideas
- Open a [pull request](https://github.com/wesleyara/utils-react/pulls) to give ideas for code improvement, implementation of new features and bug fixes

These are just some of the ways you can contribute to the project read the [CONTRIBUTING](https://github.com/wesleyara/utils-react/blob/main/.github/CONTRIBUTING.md) for more information

# :adult: Authors

<table>
  <tr>
    <td align="center"><a href="https://wesleyaraujo.dev/"><img src="https://avatars.githubusercontent.com/u/89321125?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Wesley Araújo</b></sub></a><br /></td>
  </tr>
</table>

## ✨ Contributors

<table>
  <tr>
    <td align="center"><a href="https://github.com/Patryck-Silva"><img src="https://avatars.githubusercontent.com/u/41785386?v=4" width="100px;" alt=""/><br /><sub><b>Patryck Silva</b></sub></a><br /></td>
    <td align="center"><a href="https://github.com/joaoianuci"><img src="https://avatars.githubusercontent.com/u/42063789?v=4" width="100px;" alt=""/><br /><sub><b>João Vitor Ianuci</b></sub></a><br /></td>
    <td align="center"><a href="https://github.com/Glerme"><img src="https://avatars.githubusercontent.com/u/62507710?v=4" width="100px;" alt=""/><br /><sub><b>Guilherme Felipe</b></sub></a><br /></td>
  </tr>
</table>

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->

<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!

# :page_facing_up: License

utils-react is a open source project licensed as [MIT](LICENSE).

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