Corrected a typo. (#8837)
shoud -> should
EugeneGarbuzov committed
Jan 20, 2017 at 22:25 UTC
30c7c4fbe6f35af93ddec0c7ae661d592821b296
1 file changed
+1
-1
docs/docs/optimizing-performance.md
+1
-1
@@ -184,7 +184,7 @@ class WordAdder extends React.Component {
184
}
185
```
186
187
-The problem is that `PureComponent` will do a simple comparison between the old and new values of `this.props.words`. Since this code mutates the `words` array in the `handleClick` method of `WordAdder`, the old and new values of `this.props.words` will compare as equal, even though the actual words in the array have changed. The `ListOfWords` will thus not update even though it has new words that shoud be rendered.
187
+The problem is that `PureComponent` will do a simple comparison between the old and new values of `this.props.words`. Since this code mutates the `words` array in the `handleClick` method of `WordAdder`, the old and new values of `this.props.words` will compare as equal, even though the actual words in the array have changed. The `ListOfWords` will thus not update even though it has new words that should be rendered.
188
189
## The Power Of Not Mutating Data
190