I have an object which i want to update it using React Hooks
const [rowEdit, setRowEdit] = useState({ rowEdit: { "1x0": [1, 1, 1, 1, 1] } });
I loop through the array with .map, so i have the index for each element. How can i make the second value equal to 0?