samedi 27 mars 2021

How to keep component running in background in react?

I have a clock(interval) component where the time starts when a user visits the webpage but when the user move to other page and comes back to the clock page then the timer starts from beginning again.

How can I keep the Clock component running in background so no matter which webpage the user visits, the timer should keep going?

Thank you in advance




Aucun commentaire:

Enregistrer un commentaire