Fix docs typo: "overridden" -> "overwritten"
I think this was meant to say "overwritten", since "the statement overwrites the data" makes more sense than "the statement overrides the data".
David Percy committed
Jun 24, 2015 at 01:54 UTC
78018b99d61ef57fc37fba45cafa469f2baf9692
1 file changed
+1
-1
docs/docs/10.7-update.md
+1
-1
@@ -20,7 +20,7 @@ myData.x.y.z = 7;
20
myData.a.b.push(9);
21
```
22
23
-you have no way of determining which data has changed since the previous copy is overridden. Instead, you need to create a new copy of `myData` and change only the parts of it that need to be changed. Then you can compare the old copy of `myData` with the new one in `shouldComponentUpdate()` using triple-equals:
23
+you have no way of determining which data has changed since the previous copy has been overwritten. Instead, you need to create a new copy of `myData` and change only the parts of it that need to be changed. Then you can compare the old copy of `myData` with the new one in `shouldComponentUpdate()` using triple-equals:
24
25
```js
26
var newData = deepCopy(myData);