I am having trouble getting my react project to update the "timeRemaining" state in real-time. I understand that it operates asynchronously but I can\'t figure out how