Mongodb – Save a specific value from an array of object and store them individually into another state to get the sum ReactJS
In addition to this question I am trying to map individually a state to another state to store the amountToPay object to get the sum of it. The problem is every time it renders the onChange function. It stores every…