I
I
Ilya Kolesnikov2021-06-20 12:51:12
React
Ilya Kolesnikov, 2021-06-20 12:51:12

How to hang onchange for array objects?

I have a nested object, there are two fields (unitDirection, unitText) in the array objects that I need to hang onchange on, I don’t understand how to do it, how to write a function so that the value changes when clicked, it’s deeply nested, so I don’t understand how to write this logic

https:/ /habrastorage.org/webt/60/cf/0d/60cf0dab564...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question