Use spread operator over Object.assign (#14496)

This commit is contained in:
Stacey Gammon 2017-10-22 08:16:31 -04:00 committed by Court Ewing
parent e49eab2df0
commit 73058c67b1

View file

@ -126,10 +126,11 @@ class Resize extends Component {
render() {
const { state } = this;
const expandStyle = Object.assign({}, expandChildStyle, {
const expandStyle = {
...expandChildStyle,
width: state.expandChildWidth,
height: state.expandChildHeight
});
};
return (
<div