I\'m trying to organize my state by using nested property like this:
this.state = { someProperty: { flag:true } }
But updating
To write it in one line
this.setState({ someProperty: { ...this.state.someProperty, flag: false} });