I am working on app that have cards presenting time progress in each card i dont want to set interval function in each component so it will be performance issue and the application will crash how to set a timer state in the parent component and share the state to the child components