React State is rolling back to previous value

后端 未结 0 1557
不思量自难忘°
不思量自难忘° 2020-12-01 17:05

I have a problem which I could not figure out. I have this function which calculates the total price:

 const [totalPrice, setTotalPrice] = useState(0);

  con         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题