This is my object schema I am trying to update the number of votes like this Let’s say the original amount of votes is 1, and the requested amount of votes is 5. The put request will update the amount of votes to be 5. Instead I would like to add the requested amount of votes on top of the
Tag: put
Http PUT deletes data that hasn’t been changed
I am trying to edit a JSON data base of shifts. I am writing in Javascript using react. This is my understanding of the PUT syntax: data.json: The result is that the new shift will hold only the fields that have been changed and delete the rest. Any ideas why? Answer I had to send the whole updated shift into
How can i loop object in useEffect React js
Here is my code! I want loop object in useEffect! I have a task to edit data! so for that I created a state and using useEffect I am taking data and showing values on input fields! but data I want to show that is images! and here is the JSON that I am taking! Here I need to loop