The novice asks whether the settings in state in react can be added in a non-manual way.

 :this.state={key1:value1,key2:value2}, 
 
 :this.state={key1:value1,key2:value2,key3:value3}
 
 statekey3:value3,
 
 this.statepush(),this.state.push(key3,value3)
 this.state={key1:value1,key2:value2,key3:value3}
 
 this.statepush()
 this.state

this.state = {key1: value1, key2: value2}

this.setState({key3: value3});

//this.state = {key1: value1, key2: value2, key3: value3};

this.setState({key1: updateValue1});

//this.state = {key1: updateValue1, key2: value2, key3: value3};
Menu