📅  最后修改于: 2022-03-11 15:02:32.395000             🧑  作者: Mango
this.setState(prevState => ({
...prevState,
jasper: { // object that we want to update
...prevState.jasper, // keep all other key-value pairs
name: 'something' // update the value of specific key
}
}))