react-countup-v2
React component wrap for CountUp.js
Installation
$ npm install --save countup.js react-countup-v2
Usage
;{const onReady = {};const onComplete = {};const onUpdate = {};const onError = console;return<ReactCountUpdelay=10endVal=1000onReady=onReadyonComplete=onCompleteonUpdate=onUpdateonError=onError/>;}
propTypes
className: PropTypesstringdelay: PropTypesnumberendVal: PropTypesnumberoptions: PropTypesobjectonReady: PropTypesfunconComplete: PropTypesfunconUpdate: PropTypesfunconError: PropTypesfunc
defaultProps
className: nullendVal: 100delay: 0options:startVal: 0decimalPlaces: 0duration: 2useEasing: trueuseGrouping: truesmartEasingThreshold: 999smartEasingAmount: 333separator: ','decimal: '.'easingFn: nullformattingFn: nullprefix: ''suffix: ''numerals:{}{}{}{}
License
MIT