My 25+5 clock is working properly but tests are failing

Tell us what’s happening:
My 25+5 Clock seems to work correctly, but half the total tests are failing, even the easiest ones. I don’t know what else to do, I’ve tried everything. First I thought it was a setInterval bug/delay, then I realized it’s probably my fault.

Your code so far
There’s a lot of code written, so I’ll be sending the link to my codepen:

25 + 5 Clock - freeCodeCamp (

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.53 Safari/537.36 Edg/103.0.1264.37

Challenge: Build a 25 + 5 Clock

Link to the challenge:


You’re using React 18 in your codepen.

I’ve just tested your code using React 17 and it passed all the tests.

(There’s an open issue for React 18 causing problems with these tests.)

I used the production cdn links on this page of the React docs - just change 18 to 17.

And don’t forget that you’ll need to use ReactDOM.render().

1 Like

Hi! I understood. Thanks a lot for the help. I would never have found out on my own

thanks for the links too, it saved me a lot of time :slight_smile:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.