Supporting the key-prop
This commit is contained in:
@@ -25,6 +25,7 @@ export class MyTodo extends CustomElement{
|
||||
>
|
||||
{this.todos.map(item =>
|
||||
<todo-item
|
||||
key={item.id}
|
||||
model={ item.id }
|
||||
checked={ item.checked }
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user