In React, why can't I use an object wrapper in state to allow mutating the data inside?
10:57 31 Dec 2025

In React, if I have an array of data like [A, B, C], why not store it inside a wrapper object like { array: [A, B, C] }? then we can mutate the array directly (e.g., using .push()) and then create a new wrapper object to update the state.

why this method is wrong and no one talks about it at all ?

reactjs state-management