4 ms·
I'm experiencing the trade off between simplicity and expressiveness for a lightweight frontend library that doesn't involve VDOM. On one hand, a library [1] c
by aabbcc1241 3y ago
I'm experiencing the trade off between simplicity and expressiveness for a lightweight frontend library that doesn't involve VDOM.
On one hand, a library [1] can be very concise (update dom from object, with looping and nesting supported).
On another hand, a library [2] can be very flexible and reactive (update dom from dom events).
However, when double-binding (a.k.a. bi-directional binding) is required (update dom from object and update object from dom), it seems more complex than I would consider it lightweight.
When double-binding is preferred, I'd rather go for angular / vue. Still exploring alternatives.
[1] https://github.com/beenotung/data-template https://github.com/beenotung/data-template
[2] https://github.com/beenotung/dom-proxy https://github.com/beenotung/dom-proxy