We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 055f9d6 commit 3265048Copy full SHA for 3265048
example/src/components/randomizedLine.js
@@ -47,7 +47,10 @@ const Graph = React.createClass({
47
newData.push(Math.floor(Math.random() * 100));
48
}
49
50
- var newDataSet = Object.assign({}, oldDataSet);
+ var newDataSet = {
51
+ ...oldDataSet
52
+ };
53
+
54
newDataSet.data = newData;
55
56
_this.setState({datasets: [newDataSet]});
0 commit comments