I have built the Pomodoro clock challenge using React. My attempt seems to follow all the user stories perfectly (apart from the audio, I still need to add that but this is fairly minor).
However, when I run the FCC tests, it fails multiple tests.
Thank you for your reply. The reset works perfectly for me
Would it be a browser compatibility issue? I see no reason in my code we the rest would work for me and not for you. Perhaps this is the issue causing the test to fail though.
that line prevents the user from increasing the break time if they are already in a break OR from increasing the break to 60 as per the user stories. It should have nothing to do with the reset or the timing function
Apologies I misunderstood. Thanks for flagging this I have corrected. Not sure why the reset button isn’t working for you. It works for me and the code is fairly simple. It’s still failing the test. I think it must have to do with how I’m using useEffect.
Remember, you do not have to use it for the projects. It is offered and recommended, because most users do not know how to set up a hosted preview of their webpage at this point, and CodePen skips the middle-man.
Personally, I think GitHub is an excellent way to go for all of your projects, as, if you are serious about furthering in web/software development, Git is almost a must. Plus, having all of your projects in one place is nice.
Thank you, that’s good advice. I do use github and VSC normally but felt I needed to use this to get the certification, which I guess is not really all that necessary. I appreciate your comments and help with this. I think the basic approach is correct, and I’m using useEffect() etc correctly which I suppose is the main thing.