react-count-up
Version:
React Component to simulate realtime count up
44 lines (32 loc) • 809 B
Markdown
//cldup.com/DNnZtNvXYI.gif)]
```sh
$ npm i react-count-up -S
```
```js
import React from 'react';
import { render } from 'react-dom';
import CountUp from 'react-count-up';
render(
<CountUp value={1000000} interval={5} incrementMin={1} incrementMax={10} />,
document.getElementById('app')
);
```
```js
CountUp.defaultProps = {
className: '',
value: 0, //Initial value
interval: 5,
incrementMin: 1,
incrementMax: 10,
cookieName: 'react-count-up',
localeString: 'pt-BR', //String with a language sensitive representation of this number.
persistent: false // Save cookie before unload page and init with the last value
};
```
MIT
**Free Software, Hell Yeah!**
This component will simulate realtime count up.
![N](https: