title: How can i set a fucntion related to a button to start , pause Interval according to certain condition in REACT using hooks?
body: <p>would please help me find a solution to my problem, here is the codepen code to make things easier for you [https://codepen.io/darkuni/pen/oNZEKrp?editors=0010][1].</p>
  <p>I have tried to read other's code, documentation  watch videos but i couldn't get out with any solution (please no toxic comments).</p>
  <p>i guess from seeing my code , you can tell that i am trying to start an Interval to update the timer value , and stop  it when it reaches &quot;00:00&quot;.</p>
  <p>Thanks in advance</p>