This is just a Todo List JSX template, babel´s output seems to be ok, it generates the h() calls just like documentation suggests, but, in the case of the code above, just the checkbox is being created inside div.item. The label, button and even input:text are simply ignored. There´s no error on compilation or even in runtime.
I´m using babel to transform JSX templates into virtual-dom hyperscript so I don´t have to write those h() calls manually.
It works well when you don´t have a loop inside of it. Otherwise virtual-dom misses some elements.
This is just a Todo List JSX template, babel´s output seems to be ok, it generates the h() calls just like documentation suggests, but, in the case of the code above, just the checkbox is being created inside
div.item
. Thelabel
,button
and eveninput:text
are simply ignored. There´s no error on compilation or even in runtime.