Pomodoro clock React,issue with play pause button

Pomodoro clock React,issue with play pause button
0

#1

hi,i need your help,i have a problem with the play pause button,when i click the first time on it it works,but not for the second time it does not pause the timer,i need to know how to change the state of paused each time i click on the play,pause button,here is the app https://codepen.io/mehdij/pen/VEeJoP


#2

Where are you currently trying to pause the timer in your code?


#3

i am tryning to pause the timer in the play method, i am trying to use it for both playing and posing the timer since it’s the same button .


#4

i finaly found a way to resolve the problem!