Hacker News new | ask | show | jobs
by ChocolateGod 425 days ago
IIRC its what frameworks like Svelte do when they hit the compiler and optimize, which makes the best of both worlds.
1 comments

They still nail "state" to element trees, which creates unbenchmarkable but real update costs. Svelte does better than react, but only within the same paradigm.
Can you describe what you mean by that a bit more? As I understand it, with the new signals-based system in Svelte, updating data directly updates the DOM.
It's also worth noting that the Svelte signals implementation is quite performant. [0]

[0] https://github.com/sveltejs/svelte/discussions/13277