mirror of https://github.com/sveltejs/svelte
In most tutorials, people use count++. Now, in the introduction video on the website, the author talks about assignment operation triggering update (the Vue example). Now, what confused me a bit, and made me try the count++ is that, it is obvious that count++ is count = count + 1 or count+=1, but since svelte is a compiler, I was not sure if the compiler, based on the expression of assignment does some work, or not. That confused me, so it is a good chance that it might confuse other people.pull/5985/head
parent
d3f3ea38d0
commit
a9cb1ba540
Loading…
Reference in new issue