Is there any way I can set value of array in specific index with React imutability helper ?
For example something like this:
const newState = update(this.state , {
open[8]:{$set: false}
})
this.setState(newState);
or do I have to deep clone that array using JSON and then set new value at specific index and then use react imutability helper to update state?
{ open: state.open.filter((value, index) => index != 8) }