mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #1273 from wincent/typo-fix-02
Fix a minor typo in the `update()` docs
This commit is contained in:
@@ -40,7 +40,7 @@ var newData = extend(myData, {
|
||||
|
||||
While this is fairly performant (since it only shallow copies `log n` objects and reuses the rest), it's a big pain to write. Look at all the repetition! This is not only annoying, but also provides a large surface area for bugs.
|
||||
|
||||
`update() provides simple syntactic sugar around this pattern to make writing this code easier. This code becomes:
|
||||
`update()` provides simple syntactic sugar around this pattern to make writing this code easier. This code becomes:
|
||||
|
||||
```javascript
|
||||
var newData = React.addons.update(myData, {
|
||||
|
||||
Reference in New Issue
Block a user