对于以下两行设置组件状态的值的写法,效果是一样的,第一行是简写。

this.setState({ processedData });
this.setState({ processedData: processedData });