dy / spect

Observable selectors in DOM
https://dy.github.io/spect
MIT License
77 stars 8 forks source link

h: cache element by stack instead of creating anew #224

Closed dy closed 4 years ago

dy commented 4 years ago

Are there cases where we need new element each time instead of modifying prev one? map? Does that mean if mapping case was handled separately, there would be no sense to create element more-than-once per h`el` call?

. On another point - is that faster to just have spect/h as hyperscript, and for html syntax use htm?

dy commented 4 years ago

htm static cache did exactly that - not useful.