Wording tweaks to reconciliation docs

(cherry picked from commit e2dad02ef2)
This commit is contained in:
Ben Alpert
2014-08-12 15:14:46 -07:00
committed by Paul O’Shannessy
parent 9ebc6477fc
commit 89872fcb30
+1 -1
View File
@@ -116,7 +116,7 @@ renderB: <div><span key="second">second</span><span key="first">first</span></di
=> [insertNode <span>second</span>]
```
In practice, finding a key is not really hard. Most of the time, the element you are going to display already have a unique id. When it is not the case, you can hash some parts of the content to generate a key. Remember that the key only has to be unique among its sibling, not globally unique.
In practice, finding a key is not really hard. Most of the time, the element you are going to display already has a unique id. When that's not the case, you can add a new ID property to your model or hash some parts of the content to generate a key. Remember that the key only has to be unique among its siblings, not globally unique.
## Trade-offs