how to share the state of a timer in parent component to child components

Viewed 19

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

0 Answers
Related