this is my state of array.
const [arr, setArr] = useState([
{
"id": 1,
"barcode": "8851907264888",
"qty" : 1
},
{
"id": 2,
"barcode": "8857124022072",
"qty": 1
}
]);
if I want to update qty to 2 in array[0] , what should I do?