4 ms·
I've built a library to make vanilla webcomponents reactive via a manual render() call that updates only changed nodes: https://vorticode.github.io/solarite/ h
by eric-p7 1y ago
I've built a library to make vanilla webcomponents reactive via a manual render() call that updates only changed nodes:
https://vorticode.github.io/solarite/ https://vorticode.github.io/solarite/
I was planning to improve performance more before announcing it. But even as is it beats React and approaches Lit.js on the JS framework benchmarks.
- drysart 1y agoI've done something similar to this for my own internal applications, making use of snabbdom to handle the DOM updates. Snabbdom is tiny, robust, proven, and unopinionated; so I didn't see any particular need to reinvent that wheel.
- eric-p7 1y agoNice. I used the open source udomdiff for my domdiffing, since my approach didn't use a virtualdom.