💫 A configurable React component wrapper around CountUp.js
https://github.com/glennreyes/react-countup/compare/v6.1.0...v6.1.1
https://github.com/glennreyes/react-countup/compare/v6.0.0...v6.1.0
https://github.com/glennreyes/react-countup/compare/v6.0.0-2...v6.0.0
https://github.com/glennreyes/react-countup/compare/v6.0.0-1...v6.0.0-2
https://github.com/glennreyes/react-countup/compare/v6.0.0-0...v6.0.0-1
https://github.com/glennreyes/react-countup/compare/v5.2.0...v6.0.0-0
https://github.com/glennreyes/react-countup/compare/v5.1.0...v5.2.0
https://github.com/glennreyes/react-countup/compare/v5.0.0...v5.1.0
https://github.com/glennreyes/react-countup/compare/v5.0.0-0...v5.0.0
New API for useCountUp
:
You need to define ref
- id of html element, input, svg text element, or DOM element reference where counting occurs
const Hook = () => {
const span = React.useRef(null);
useCountUp({ end: 10, ref: span });
return <span ref={span} />;
};
const Hook = () => {
useCountUp({ end: 10, ref: "counter" });
return <span id="counter" />;
};
https://github.com/glennreyes/react-countup/compare/v4.4.0...v5.0.0-0