all repos — h3 @ 25dfab636dbe8070597e23bdc5d2f678aea307db

A tiny, extremely minimalist JavaScript microframework.

Refactoring: using functions in vnodes.
h3rald h3rald@h3rald.com
Mon, 13 Apr 2020 13:57:40 +0200
commit

25dfab636dbe8070597e23bdc5d2f678aea307db

parent

475a461d1af54620941667dcf70a765484aa67d3

2 files changed, 2 insertions(+), 2 deletions(-)

jump to
M example/assets/js/components/navigationBar.jsexample/assets/js/components/navigationBar.js

@@ -18,6 +18,6 @@ id: "filter-text",

placeholder: "Type to filter todo items...", onkeyup: setFilter, }), - Paginator(), + Paginator, ]); }
M example/assets/js/components/todoList.jsexample/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) ); }