> compared to a well written app that updates the DOM directly only when needed (which I find is easy to accomplish in most apps).
> Can't speak to the svelte approach due to inexperience with it
Heya! I'm been using Svelte for the last week for a new project - knowing React has the lion's share of community right now, but feeling like Svelte is where things are going to be.
Regarding: "compared to a well written app that updates the DOM directly only when needed" - exactly! Svelte actually does this for you. Given the following Svelte code:
age = 7;
That just updated anything bound to 'age' in the DOM. No set() or setState() or whatever. Or for an array:
favoriteFoods.push('peaches');
favoriteFoods = favoriteFoods;
That just updated the DOM for anything bound to 'favoriteFoods'.
The whole point of Svelte is that it takes your input JS, and builds the well written app as output!
It's very easy to pick up and I like it a lot.
https://svelte.dev/