title: How to update and specific Object in the useState Array?
body: <p>I am using the
  <code>props.setSelectValue((prevState: any) =&gt; ([...prevState, {control: props.data.control, value:itemValue}]))</code>
  to update and array of objects, but it is appending value to a previous object and I would like just to update when the key is already in the object. How can I do it?</p>