3 ms·
We already have something similar to this at hyperapp.. it is https://github.com/hyperapp/html https://github.com/hyperapp/html. But yes, as mentioned by @maskl
by lukejacksonn 9y ago
We already have something similar to this at hyperapp.. it is https://github.com/hyperapp/html https://github.com/hyperapp/html. But yes, as mentioned by @masklinn, the drawback is you then have to define every element and then import all those definitions. With ijk you can write dependency free views (no import of h or h1, h2, etc.)
- gberger 9y agoNot necessarily, you could have `h.h1` and `h.span` and `h.myCustomElement` just by using Proxies from Ecmascript 6 https://makandracards.com/makandra/44070-javascript-hash-object-with-default-value https://makandracards.com/makandra/44070-javascript-hash-obj...
- couchand 9y ago> you can write dependency free views Well, explicit-dependency-free, but there's still an implicit dependency on the tag names. Granted, those are just standard HTML, but something is lost by not checking them at compile time. OTOH, you could write a linter for that...