• Home
  • Jobs
  • Courses
  • Questions
  • Teachers
  • For business
  • ES/EN

0

30
Views
CountUp.js Update from previous number

I'm working on a project using NextJs and CountUp.js.
I want to be able to update the count from the previous number instead of 0.

Is this possible?

const [targetNumber, setTargetNumber] = useState(100)

<CountUp
 end={ targetNumber }
 duration={ 1 } 
/>
about 1 month ago ·

Juan Pablo Isaza

Answer question
Find remote jobs
Loading

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post job Plans Our process Sales
Legal
Terms and conditions Privacy policy
© 2022 PeakU Inc. All Rights Reserved.