React / JS - How to replace an array item without mutating @see: ... Make a shallow copy of the item you want to mutate let item = {...items[1]}; // 3.
確定! 回上一頁