Quick React Implementation

I used react and the setInterval function, by clearing the interval, I get the desired behavior. Interesting to see that the remainder operator and the modulo operator differ


Requested feedback

How to get the data in a nicer way

Comments

Get future questions delivered straight to your inbox for free

Sign up and receive instant access to new questions when we publish them.

We‘ll only use your information to deliver new questions and to provide you updates about our product. We‘ll never spam you or sell your information without your consent. Unsubscribe at any time.