Skip to content

Commit 6743759

Browse files
kjmacdonst
authored andcommitted
Update adds more direct recommendation for authoring list items with Morphdom.
1 parent e9a9da5 commit 6743759

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/docs/md/conventions/components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ Once added the `MorphdomMixin` will handle updating the DOM whenever an `observe
227227

228228
### Lists
229229

230-
When working with lists of data in the DOM it is highly advisable to add a unique attribute to the list item like an `id` or `key`. This will assist `morphdom` in determining what items have changed in the list.
230+
When working with lists of data in the DOM it is highly advisable to add a unique `id` attribute to the list item. [The `state` object passed to an element's render function has a unique `instanceID` property available for this purpose]('/docs/elements/state/instance-id'). This will assist `morphdom` in determining what items have changed in the list.
231231

232232
</doc-callout>
233233

0 commit comments

Comments
 (0)