Tested support for key property.
h3rald h3rald@h3rald.com
Wed, 15 Apr 2020 11:21:08 +0200
1 files changed,
1 insertions(+),
1 deletions(-)
M
example/assets/js/components/todo.js
→
example/assets/js/components/todo.js
@@ -10,7 +10,7 @@ const removeTodo = (todo) => {
h3.dispatch("todos/remove", data); h3.redraw() }; - return h3(`div#${data.key}.todo-item`, [ + return h3(`div.todo-item`, {key: data.key}, [ h3(`div.todo-content${todoStateClass}`, [ h3("span.todo-text", { onclick: () => toggleTodo(data) }, data.text), ]),