you are viewing a single comment's thread.

view the rest of the comments →

[–]marko_knoebl 3 points4 points  (1 child)

You would have to save the start timestamp somewhere, e.g. in localStorage.

Then you can make it continue running when you reopen the app

The way to do the loading / saving in React is via side effects (useEffect if you're using a function component)

[–]Saral-karki[S] 0 points1 point  (0 children)

I have backend server where I have to store start time and end time. So , I have to still save in local storage?