Refactoring: using functions in vnodes.
h3rald h3rald@h3rald.com
Mon, 13 Apr 2020 13:57:40 +0200
2 files changed,
2 insertions(+),
2 deletions(-)
M
example/assets/js/components/todoList.js
→
example/assets/js/components/todoList.js
@@ -9,6 +9,6 @@ const start = (page - 1) * pagesize;
const end = Math.min(start + pagesize, filteredTodos.length); return h3( "div.todo-list", - filteredTodos.slice(start, end).map((t) => Todo(t)) + filteredTodos.slice(start, end).map(Todo) ); }