Skip to content

Commit ae2e404

Browse files
author
Claudéric Demers
authored
docs: Update README example to use stable key prop
1 parent f7b4950 commit ae2e404

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const SortableList = SortableContainer(({items}) => {
6060
return (
6161
<ul>
6262
{items.map((value, index) => (
63-
<SortableItem key={`item-${index}`} index={index} value={value} />
63+
<SortableItem key={`item-${value}`} index={index} value={value} />
6464
))}
6565
</ul>
6666
);

0 commit comments

Comments
 (0)