react-countup

💫 A configurable React component wrapper around CountUp.js

MIT License

Downloads
1.3M
Stars
1.9K
Committers
32
react-countup - Latest Release

Published by mmarkelov 7 months ago

react-countup -

Published by mmarkelov 7 months ago

  • Fix types and build process (#851) 6ca0dc4
  • Bump @babel/preset-env from 7.23.2 to 7.24.0 (#850) f200a13
  • Bump @babel/preset-typescript from 7.23.2 to 7.23.3 (#826) 0973eea
  • Bump @babel/preset-react from 7.22.15 to 7.23.3 (#830) 0951ca3
  • Bump prettier from 3.0.3 to 3.2.4 (#841) b857d79
  • Bump eslint from 8.52.0 to 8.56.0 (#835) b6c777b
  • Bump @testing-library/react from 14.0.0 to 14.2.0 (#842) 2f83378
  • Bump @typescript-eslint/eslint-plugin from 6.9.1 to 6.20.0 (#843) 4c33805
  • Bump @typescript-eslint/parser from 6.9.1 to 6.20.0 (#845) 717eacc
  • Bump rollup from 4.2.0 to 4.9.6 (#846) 6e1921f
  • Bump @babel/core from 7.23.2 to 7.23.9 (#847) 383f442

https://github.com/glennreyes/react-countup/compare/v6.5.1...v6.5.2

react-countup -

Published by mmarkelov 12 months ago

  • Support some new countup features (#821) 151682b
  • Update dependencies (#820) 81e5f61
  • Move babel plugin to dev deps (#814) 7ca5365
  • Update README.md d6e9b05

https://github.com/glennreyes/react-countup/compare/v6.4.2...v6.5.0

react-countup -

Published by mmarkelov over 1 year ago

  • Fix undefined properties for wrapped components (#785) 02dc4e1
  • Bump jest-environment-jsdom from 28.1.3 to 29.5.0 (#779) 5ec0b78
  • Bump eslint from 8.28.0 to 8.36.0 (#780) bc520fc
  • Bump jest from 28.1.2 to 29.5.0 (#781) 827b7c2
  • Bump @typescript-eslint/parser from 5.44.0 to 5.54.1 (#782) 9dd9a7f
  • Add support for the useIndianSeparators property (#784) c9c7b31
  • Bump eslint-config-prettier from 8.5.0 to 8.7.0 (#778) 6783ad0
  • Bump eslint-plugin-react from 7.31.8 to 7.32.2 (#764) cf0494c
  • Bump typescript from 4.9.3 to 4.9.5 (#762) e898109
  • Bump @typescript-eslint/eslint-plugin from 5.44.0 to 5.54.1 (#783) 286778a
  • Bump CountUp (#777) 156525f
  • #711 - useEasing default value to undefined fix (#776) f1a5445

https://github.com/glennreyes/react-countup/compare/v6.4.1...v6.4.2

react-countup -

Published by mmarkelov over 1 year ago

react-countup -

Published by mmarkelov almost 2 years ago

  • Fix reset error (#737) 03a61db
  • Update node.js.yml 2c5d20f

https://github.com/glennreyes/react-countup/compare/v6.3.2...v6.4.0

react-countup -

Published by mmarkelov about 2 years ago

  • Fix SSR condition (#729) f4c2925
  • Bump @babel/preset-react from 7.17.12 to 7.18.6 (#683) ae61e9d
  • Bump typescript from 4.7.4 to 4.8.4 (#715) ffdefd6
  • Bump babel-jest from 28.1.3 to 29.2.0 (#728) 105bd13
  • Bump @testing-library/react from 13.3.0 to 13.4.0 (#714) c95179f
  • Bump eslint-plugin-react from 7.30.1 to 7.31.8 (#717) ed4a5b2
  • Bump rollup from 2.77.2 to 2.79.1 (#721) 4f9e907
  • Bump @babel/core from 7.18.13 to 7.19.3 (#722) a271ae5

https://github.com/glennreyes/react-countup/compare/v6.3.1...v6.3.2

react-countup -

Published by mmarkelov about 2 years ago

  • add scrollSpyOnce to countup instance (#700) 1426232
  • Bump @babel/core from 7.18.6 to 7.18.13 (#704) e5a80d1
  • Bump jest-environment-jsdom from 28.1.2 to 28.1.3 (#696) cb5a806
  • Bump babel-jest from 28.1.2 to 28.1.3 (#695) 94cd145
  • Bump rollup from 2.75.7 to 2.77.2 (#694) 3ab65d8
  • Bump countup.js from 2.3.1 to 2.3.2 (#693) c590681
  • Bump @babel/preset-env from 7.18.2 to 7.18.9 (#692) e7978cc
  • Bump jest-environment-jsdom from 28.1.1 to 28.1.2 (#679) dfbf8f5
  • Bump babel-jest from 28.1.1 to 28.1.2 (#680) 35df78e
  • Bump @babel/preset-typescript from 7.17.12 to 7.18.6 (#684) 8c724e9
  • Bump countup.js from 2.2.0 to 2.3.1 (#685) 0809481
  • Bump eslint-plugin-prettier from 4.0.0 to 4.2.1 (#682) a3a3e4d
  • Bump eslint-plugin-react from 7.30.0 to 7.30.1 (#678) 295212b
  • Bump jest from 28.1.1 to 28.1.2 (#677) fc6898e
  • Bump @babel/core from 7.18.5 to 7.18.6 (#686) 79805ad
  • Update README.md 0ed22d3

https://github.com/glennreyes/react-countup/compare/v6.3.0...v6.3.1

react-countup -

Published by mmarkelov over 2 years ago

  • Update packages (#675) 5efaf83
  • Bump @babel/preset-react from 7.16.7 to 7.17.12 (#674) 5efecca
  • Bump @babel/core from 7.17.10 to 7.18.5 (#673) dfbb7b0
  • Bump typescript from 4.6.4 to 4.7.4 (#672) 688ab4e
  • Bump eslint-plugin-react-hooks from 4.5.0 to 4.6.0 (#670) 1a02d1b
  • Bump @testing-library/react-hooks from 8.0.0 to 8.0.1 (#669) 4e6f738
  • Bump rollup from 2.71.1 to 2.75.7 (#668) 4c2d35c
  • Bump prettier from 2.6.2 to 2.7.1 (#667) 14da152
  • Bump babel-jest from 28.0.3 to 28.1.1 (#666) c4fa0ee
  • Bump @babel/preset-typescript from 7.16.7 to 7.17.12 (#664) de28466
  • Bump @babel/preset-env from 7.17.10 to 7.18.2 (#662) f09cf2f
  • Bump countup.js from 2.1.0 to 2.2.0 (#661) 1dca0d8
  • Bump eslint-plugin-react from 7.29.4 to 7.30.0 (#659) 151a888
  • Bump @rollup/plugin-node-resolve from 13.2.1 to 13.3.0 (#658) 3b809f0
  • Bump typescript from 4.6.4 to 4.7.2 (#657) 971142e
  • Bump @testing-library/react from 12.1.4 to 12.1.5 (#651) 596128a
  • Bump rollup from 2.70.1 to 2.71.1 (#642) c48dc66
  • Bump @babel/preset-env from 7.16.11 to 7.17.10 (#643) c509c3e
  • Bump babel-jest from 27.5.1 to 28.0.3 (#646) df06e80
  • Bump typescript from 4.6.3 to 4.6.4 (#652) e9db1d6
  • Bump @rollup/plugin-node-resolve from 13.1.3 to 13.2.1 (#641) b901e43
  • Bump eslint-plugin-react-hooks from 4.4.0 to 4.5.0 (#644) 54de4c1
  • Bump prettier from 2.6.1 to 2.6.2 (#647) a902afb
  • Bump @babel/core from 7.17.8 to 7.17.10 (#648) 16de5c8
  • Bump @testing-library/react-hooks from 7.0.2 to 8.0.0 (#649) ba2dea1
  • Bump async from 2.6.3 to 2.6.4 in /demo (#640) 89a7c19
  • Update README.md 6e9a537

https://github.com/glennreyes/react-countup/compare/v6.2.0...v6.3.0

react-countup -

Published by mmarkelov over 2 years ago

  • Update countup version (#638) aff6922
  • Bump minimist from 1.2.5 to 1.2.6 (#636) bc0fde6
  • Bump minimist from 1.2.5 to 1.2.6 in /demo (#637) 1b310db
  • Bump eslint-config-prettier from 8.4.0 to 8.5.0 (#627) cbecfe4
  • Bump prettier from 2.5.1 to 2.6.1 (#626) 8f8dbfc
  • Bump eslint-plugin-react from 7.29.2 to 7.29.4 (#628) 1b8fe24
  • Bump typescript from 4.6.2 to 4.6.3 (#629) 8b8774a
  • Bump eslint-plugin-react-hooks from 4.3.0 to 4.4.0 (#631) 71f9fae
  • Bump @babel/core from 7.17.5 to 7.17.8 (#632) c35369d
  • Bump rollup from 2.68.0 to 2.70.1 (#633) f8b8e92
  • Bump @testing-library/react from 12.1.3 to 12.1.4 (#635) 047e4d3
  • Bump jest from 27.4.7 to 27.5.1 (#619) 66b45c2
  • Bump eslint-config-prettier from 8.3.0 to 8.4.0 (#618) ae6f5ce
  • Bump typescript from 4.5.5 to 4.6.2 (#620) a11ee97
  • Bump @babel/core from 7.16.12 to 7.17.5 (#621) d599bd5
  • Bump rollup from 2.66.1 to 2.68.0 (#622) 97dc3be
  • Bump babel-jest from 27.4.6 to 27.5.1 (#623) ffe8b5b
  • Bump eslint-plugin-react from 7.28.0 to 7.29.2 (#624) 339a4c3
  • Bump @testing-library/react from 12.1.2 to 12.1.3 (#625) c1a53e2
  • Bump url-parse from 1.5.7 to 1.5.10 in /demo (#617) 7bb29ed
  • Bump ajv from 6.10.2 to 6.12.6 in /demo (#616) 90dcc36
  • Bump follow-redirects from 1.14.7 to 1.14.8 in /demo (#614) c8d7f74
  • Bump url-parse from 1.5.3 to 1.5.7 in /demo (#615) 4774d12
  • Bump jest from 27.4.5 to 27.4.7 (#607) 5c8324f
  • Bump @babel/core from 7.16.7 to 7.16.12 (#611) 9e5597f
  • Bump babel-jest from 27.4.5 to 27.4.6 (#608) 58fccb7
  • Bump typescript from 4.5.4 to 4.5.5 (#609) 0d4f532
  • Bump rollup from 2.62.0 to 2.66.1 (#610) 457d8bd
  • Bump @babel/preset-env from 7.16.7 to 7.16.11 (#612) 4661637
  • Bump @rollup/plugin-node-resolve from 13.1.2 to 13.1.3 (#613) 25987c2
  • Bump nanoid from 3.1.23 to 3.2.0 in /demo (#606) c5f90a8

https://github.com/glennreyes/react-countup/compare/v6.1.1...v6.2.0

react-countup -

Published by mmarkelov almost 3 years ago

  • Update default duration to 2 (#605) f5418d0
  • Bump follow-redirects from 1.13.0 to 1.14.7 in /demo (#604) dfb5314
  • Bump @babel/core from 7.16.0 to 7.16.7 (#601) db1d47a
  • Bump @babel/preset-react from 7.16.0 to 7.16.7 (#591) b47ddc3
  • Bump @babel/preset-typescript from 7.16.0 to 7.16.7 (#592) fbc531a
  • Bump pretty-quick from 3.1.2 to 3.1.3 (#598) 2a05f65
  • Bump jest from 27.4.2 to 27.4.5 (#599) 61ec022
  • Bump @rollup/plugin-node-resolve from 13.0.6 to 13.1.2 (#602) 54155aa
  • Bump eslint-plugin-react from 7.27.1 to 7.28.0 (#593) 3386525
  • Bump rollup from 2.60.2 to 2.62.0 (#594) 60e9c85
  • Bump babel-jest from 27.4.2 to 27.4.5 (#595) a69957f
  • Bump typescript from 4.5.2 to 4.5.4 (#596) b354c0b
  • Bump @babel/preset-env from 7.16.4 to 7.16.7 (#597) a1eeb56
  • Bump prettier from 2.5.0 to 2.5.1 (#600) 517a152
  • Bump jest from 27.3.1 to 27.4.2 (#590) a998bd1
  • Bump prettier from 2.4.1 to 2.5.0 (#588) 8f4eeda
  • Bump @babel/preset-env from 7.16.0 to 7.16.4 (#587) 6b75be6
  • Bump babel-jest from 27.3.1 to 27.4.2 (#589) a264c39
  • Bump eslint-plugin-react-hooks from 4.2.0 to 4.3.0 (#586) d997d12
  • Bump eslint-plugin-react from 7.26.1 to 7.27.1 (#584) 7b1877c
  • Bump typescript from 4.4.4 to 4.5.2 (#585) d5c0766
  • Bump @babel/core from 7.15.5 to 7.16.0 (#583) d0ded42
  • Bump rollup from 2.59.0 to 2.60.2 (#582) 423ae96
  • Bump pretty-quick from 3.1.1 to 3.1.2 (#581) 4daac94

https://github.com/glennreyes/react-countup/compare/v6.1.0...v6.1.1

react-countup -

Published by mmarkelov almost 3 years ago

  • Update README.md 91401f1
  • Add initial start value for CountUp component (#580) 239d009
  • Update README.md f31808b
  • Export component props type 5acdbb3
  • Bump rollup from 2.58.0 to 2.59.0 (#579) dbc6e9f
  • Bump @babel/preset-react from 7.14.5 to 7.16.0 (#578) e0e37c4
  • Bump @babel/preset-typescript from 7.15.0 to 7.16.0 (#575) 9262995
  • Bump babel-jest from 27.2.4 to 27.3.1 (#572) 5a311be
  • Bump rollup from 2.58.0 to 2.58.3 (#576) b27b556
  • Bump @typescript-eslint/eslint-plugin from 4.32.0 to 4.33.0 (#574) e338e22
  • Bump typescript from 4.4.3 to 4.4.4 (#577) 7b4430d
  • Bump @babel/preset-env from 7.15.6 to 7.16.0 (#573) 9270ad7
  • Bump @rollup/plugin-node-resolve from 13.0.5 to 13.0.6 (#571) 85ab24e
  • Bump @typescript-eslint/parser from 4.32.0 to 4.33.0 (#570) 0e2b6cd
  • Bump jest from 27.2.4 to 27.3.1 (#569) 7581880
  • Improve demo react-live styles (#567) 7b73f08
  • Bump babel-jest from 27.1.0 to 27.2.4 (#554) cc1106f
  • Bump prettier from 2.3.2 to 2.4.1 (#557) eb089ae
  • Bump @babel/core from 7.15.0 to 7.15.5 (#563) c91373f
  • Bump eslint-plugin-react from 7.25.1 to 7.26.1 (#564) c401091
  • Bump rollup from 2.56.3 to 2.58.0 (#565) 9428f57
  • Bump @testing-library/react from 12.0.0 to 12.1.2 (#566) 7315f54
  • Bump ansi-regex from 5.0.0 to 5.0.1 (#562) 791aa54
  • Bump @typescript-eslint/eslint-plugin from 4.30.0 to 4.32.0 (#552) dd50c68
  • Bump @testing-library/react from 12.0.0 to 12.1.1 (#553) 6f4e011
  • Bump rollup from 2.56.3 to 2.57.0 (#555) aa10a5d
  • Bump typescript from 4.4.2 to 4.4.3 (#556) c2e6f72
  • Bump @rollup/plugin-node-resolve from 13.0.4 to 13.0.5 (#558) aa6988c
  • Bump @typescript-eslint/parser from 4.30.0 to 4.32.0 (#559) 5a3f7d3
  • Bump @babel/preset-env from 7.15.0 to 7.15.6 (#560) 47ad6bc
  • Bump jest from 27.1.0 to 27.2.4 (#561) 3dedc79
  • Bump tmpl from 1.0.4 to 1.0.5 (#550) 5d25430
  • Bump tmpl from 1.0.4 to 1.0.5 in /demo (#551) 61cdda3

https://github.com/glennreyes/react-countup/compare/v6.0.0...v6.1.0

react-countup -

Published by mmarkelov about 3 years ago

  • Update README.md 32ec5dd
  • Enforce Prettier + ESLint w/ Rules of Hooks (#528) 601014e
  • Hookify react-countup (#515) 8fbbaa6
  • Bump dependencies
  • Fix useCountUp unnecessary updates (#547) 26ed8ac
  • Add ability to set CountUp span props (#548) e51d82f

https://github.com/glennreyes/react-countup/compare/v6.0.0-2...v6.0.0

react-countup -

Published by mmarkelov about 3 years ago

  • Add ability to set CountUp span props (#548) e51d82f

https://github.com/glennreyes/react-countup/compare/v6.0.0-1...v6.0.0-2

react-countup -

Published by mmarkelov about 3 years ago

  • Fix useCountUp unnecessary updates (#547) 26ed8ac
  • Bump @testing-library/react-hooks from 7.0.1 to 7.0.2 (#546) 44fdffd
  • Bump @typescript-eslint/eslint-plugin from 4.29.3 to 4.30.0 (#545) dd62246
  • Bump eslint-plugin-prettier from 3.4.1 to 4.0.0 (#542) 97d467b
  • Bump @typescript-eslint/parser from 4.29.3 to 4.30.0 (#544) 557c79c
  • Bump eslint-plugin-react from 7.24.0 to 7.25.1 (#543) 5cebe50
  • Bump tar from 4.4.15 to 4.4.19 in /demo (#541) 9f60875
  • Bump babel-jest from 27.0.6 to 27.1.0 (#538) e14845c
  • Bump @babel/preset-typescript from 7.14.5 to 7.15.0 (#534) 18a5054
  • Bump @babel/core from 7.14.8 to 7.15.0 (#535) b26f6f3
  • Bump rollup from 2.55.1 to 2.56.3 (#537) b7d5a95
  • Bump jest from 27.0.6 to 27.1.0 (#539) ddcb52c
  • Bump eslint-plugin-prettier from 3.4.0 to 3.4.1 (#536) b24afbd
  • Bump @babel/preset-env from 7.14.8 to 7.15.0 (#533) 986c84d
  • Bump typescript from 4.3.5 to 4.4.2 (#532) 6047031
  • Bump @typescript-eslint/eslint-plugin from 4.29.1 to 4.29.3 (#531) b1788e5
  • Bump @typescript-eslint/parser from 4.29.1 to 4.29.3 (#530) 11409f5

https://github.com/glennreyes/react-countup/compare/v6.0.0-0...v6.0.0-1

react-countup -

Published by mmarkelov about 3 years ago

  • Enforce Prettier + ESLint w/ Rules of Hooks (#528) 601014e
  • Hookify react-countup (#515) 8fbbaa6
  • Bump url-parse from 1.5.1 to 1.5.3 in /demo (#527) b5df358
  • Bump path-parse from 1.0.6 to 1.0.7 in /demo (#526) 69bf361
  • Bump path-parse from 1.0.6 to 1.0.7 (#525) 4693a4d
  • Bump tar from 4.4.13 to 4.4.15 in /demo (#524) 15bcfd3
  • Bump rollup from 2.55.0 to 2.55.1 (#523) 0faa06b

https://github.com/glennreyes/react-countup/compare/v5.2.0...v6.0.0-0

react-countup -

Published by mmarkelov about 3 years ago

  • Remove warning (#521) 9023725
  • Bump countup (#520) 4cf5c0b
  • Update demo with last version (#518) 1bf67cd

https://github.com/glennreyes/react-countup/compare/v5.1.0...v5.2.0

react-countup -

Published by mmarkelov about 3 years ago

  • Some improvements (#517) 1ddf5d4
  • Rebuild for TypeScript (#514) 565d2c0

https://github.com/glennreyes/react-countup/compare/v5.0.0...v5.1.0

react-countup -

Published by mmarkelov about 3 years ago

  • Update index.d.ts 778188a
  • Update README.md 2d42cee
  • Bump y18n from 4.0.0 to 4.0.3 in /demo (#513) 7dcc024
  • Bump elliptic from 6.5.3 to 6.5.4 in /demo (#459) 1d9dfcb
  • Bump ini from 1.3.5 to 1.3.8 in /demo (#444) 74dd9af
  • Bump dot-prop from 4.2.0 to 4.2.1 in /demo (#420) 5e2f966
  • Bump ssri from 6.0.1 to 6.0.2 in /demo (#461) d12e225
  • Bump url-parse from 1.4.7 to 1.5.1 in /demo (#474) a83053f
  • Bump hosted-git-info from 2.8.5 to 2.8.9 in /demo (#476) 38397b1
  • Bump dns-packet from 1.3.1 to 1.3.4 in /demo (#477) 2d9ce79
  • Bump postcss from 7.0.18 to 7.0.36 in /demo (#512) dd6c8e5
  • Bump color-string from 1.5.3 to 1.5.5 in /demo (#494) 50015a7
  • Bump ws from 6.2.1 to 6.2.2 in /demo (#511) 6635f01
  • Update demo (#510) 88e7dc8

https://github.com/glennreyes/react-countup/compare/v5.0.0-0...v5.0.0

react-countup - Version 5.0.0-0

Published by mmarkelov over 3 years ago

  • Migrate to new countup version (#509) 944d721
  • Check props formattingFn (#508) deb2754
  • Bump rollup from 2.52.3 to 2.52.4 (#505) f38a59d
  • Bump @testing-library/react-hooks from 7.0.0 to 7.0.1 (#507) eb7cf50

BREAKING

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

Package Rankings
Top 1.01% on Npmjs.org
Badges
Extracted from project README
GitHub license Build Status Coverage Status Version Downloads Gzip size