Re:Show HN: I built a 4kb alternative to React, Vue, etc for...
by lolive on Saturday January 09, 2021 @11:03AM
(#25701439)
In their technical approach? Could you elaborate on that point?
[ Parent
| on HN ]
Re:Show HN: I built a 4kb alternative to React, Vue, etc for...
by defx on Sunday January 10, 2021 @06:53AM
(#25713790)
I haven't looked too closely at Lit source code recently so I couldn't really comment on that but, from a high level, they differ in the sense that lit uses render function (like react) that mixes HTML/JS whereas synergy separates the two between view/template. Neither is better or worse of course, its all about trade-offs and preferences. Lit elements are described with classes whereas synergy uses factory functions. Lit uses Shadow DOM by default, whereas synergy makes it optional.