# react-increment-number

> React number increment animation component

Latest version **0.1.3** (published 2022-11-29) · 0 weekly downloads

## Install

```sh
npm install react-increment-number
pnpm add react-increment-number
yarn add react-increment-number
bun add react-increment-number
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2022-11-29 |
| First published | 2022-11-29 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 37.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | cashon |
| Keywords | react, number, increment, vite |

## Links

- npm: https://www.npmjs.com/package/react-increment-number
- Repository: https://github.com/cashon1120/react-increment-number
- Issues: https://github.com/cashon1120/react-increment-number/issues
- npm.io page: https://npm.io/package/react-increment-number

## Dependencies (3)

- [react](https://npm.io/package/react.md) ^18.2.0
- [react-dom](https://npm.io/package/react-dom.md) ^18.2.0
- [react-increment-number](https://npm.io/package/react-increment-number.md) ^0.1.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.3 (latest) — 2022-11-29
- 0.1.2 — 2022-11-29
- 0.1.1 — 2022-11-29
- 0.1.0 — 2022-11-29

## README

# Number Increment Animation

React number increment animation component

### install
`npm install react-increment-number`  
or  
`yarn add react-increment-number`

[DEMO](https://increment.hi515.cn)
### use
```javascript 
import { useState } from 'react'
import IncrementNumber from "react-increment-number";

const [number, setNumber] = useState(0)
const [speed, setSpeed] = useState(5)

const handleAnimationEnd = (endValue: number) => {
    console.log('animation end', endValue)
}
// to: target number(value must be a number)
// speed: animation speed(1-10) and default value is 5;
<template>
    <IncrementNumber to={number} speed={speed} callback={handleAnimationEnd} />
</template>
```

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