79780182

Date: 2025-10-01 14:41:13
Score: 2.5
Natty:
Report link

Simple Answer is

just use this instead of setTime(time-1) inside your function

setTime((time)=>time-1)

This should work, why?-->https://www.theodinproject.com/lessons/node-path-react-new-more-on-state

Checkout the portion of :How State Updates?

Reasons:
  • Blacklisted phrase (0.5): why?
  • Whitelisted phrase (-2): This should work
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Shubham Panjiyara