Change single variable of react state
<p>Is it allowed to assign a single variable of react component state like <code>this.state.foo = "bar"</code> without calling setState? I need to change part of the state in multiple places, and I'm unable to use object spread operator and Object.assign is too verbose. How to change just a part of the state without redefining the whole state?</p>