# react-number-format-with-commas

> It's just an input form with commas that returns the number (as a string sans commas) to the supplied onChange handler.

Latest version **0.0.3** (published 2021-12-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-number-format-with-commas
pnpm add react-number-format-with-commas
yarn add react-number-format-with-commas
bun add react-number-format-with-commas
```

## Health

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

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

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2021-12-08 |
| First published | 2021-12-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 30.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Aryan Jabbari |
| Maintainers | aryanjabbari |
| Keywords | react, input, number, commas |

## Links

- npm: https://www.npmjs.com/package/react-number-format-with-commas
- npm.io page: https://npm.io/package/react-number-format-with-commas

## 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.0.3 (latest) — 2021-12-08
- 0.0.2 — 2021-12-08
- 0.0.1 — 2021-12-07

## README

# React Number Formatted with Commas

It's just an input form with commas that returns the number (as a string sans commas) to the supplied onChange handler.

## Installation

```shell
yarn add react-number-format-with-commas
```

or

```shell
npm install react-number-format-with-commas
```

## Usage

```tsx
import { InputNumberCommas } from 'react-number-format-with-commas';

const onChange: React.ChangeEventHandler<HTMLInputElement> = useCallback(
  (e) => setValue(e.target.value), // e.target.value is a string sans commas here
  [setValue]
);

<InputNumberCommas onChange={onChange} />;
```

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