Nihar Raote

Front-end web developer

Clicking the same button should start and stop the timer - FreeCodeCamp Pomodoro React project

Make a variable to act as a flag to indicate whether timer is stopped or started

Refactor the startStop function to handle stopping the timer as well