I\'m trying to organize my state by using nested property like this:
this.state = { someProperty: { flag:true } }
But updating
const newState = Object.assign({}, this.state); newState.property.nestedProperty = "new value"; this.setState(newState);