L
L
lookingfor22020-09-14 12:28:33
React
lookingfor2, 2020-09-14 12:28:33

How to add a value to an object that comes with the API?

I am accessing the api, writing the object to state. I need to add one more value to each item, based on one value of each item, as if to mutate the object.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
McBernar, 2020-09-14
@lookingfor2

Well, walk through the object after receiving the data, write down what you need, and save it to the state.
Where is the problem?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question