improve docs

This commit is contained in:
Leo Horie 2014-10-08 22:32:30 -04:00
parent d4642a9bba
commit 6332a805dc
7 changed files with 66 additions and 38 deletions

View file

@ -114,4 +114,7 @@ In addition, note that template performance, both in Mithril templates as well a
## Usage of keys
If you need to sort lists, or delete items from them, or splice them in any way, you should [use the `key` attribute](mithril.md#dealing-with-sorting-and-deleting-in-lists) to maintain referential integrity between the data and the DOM.
If you need to sort lists, or delete items from them, or splice them in any way, you should [use the `key` attribute](mithril.md#dealing-with-sorting-and-deleting-in-lists) to maintain referential integrity between the data and the DOM.
Not using keys still works in some cases, but might trigger more expensive code paths within the redrawing algorithm.