immutabilityReactImmutabilityHardWhat is the correct way to update array state immutably?1Produce a new array with map/filter/toSorted or the spread operator2Push directly onto the existing array3Reassign array elements by index4Call array.sort() on the state arrayBack to list