Comment

Comment by gemakelijk

This reminds me of react more than vue.

When there is a change, the setup function is executed and the virtual dom of the component is recomputed. You have no choice because it is a return in a function (setup/build).

But in Vue3, if a ref is only used in an html tag the compiler will optimize it to not recalculate the whole virtual dom.

Or shall I say, vue with jsx

parent gemakelijk 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton