3 ms·
I skimmed through it, but couldn't find a description of the distinguishing feature of svelte, i.e. how the incremental updates are performed.
by amelius 7y ago
I skimmed through it, but couldn't find a description of the distinguishing feature of svelte, i.e. how the incremental updates are performed.
- PudgePacket 7y agoIt's actually really easy to read the svelte compiler output! You'll see exactly how it works :P
- jiofih 7y agoI assume people downvoting this comment are not familiar with Svelte? You can in fact see how it works by looking at the output. Go to the REPL at https://svelte.dev/repl/hello-world https://svelte.dev/repl/hello-world and select “JS output”.
- BE-CONSTRUCTIVE 7y agoIf you see that something is missing, just add it! If you see something is done bad, just make it better! This is the way a successful society works, this is especially true for the open source society of planet earth. Be constructive, it is a way of life that will make you happy. Good Luck!
- alserio 7y agoFrom the same author, you may find this useful: https://lihautan.com/compile-svelte-in-your-head-part-1/ https://lihautan.com/compile-svelte-in-your-head-part-1/
- k__ 7y agoI think the idea is to provide the programming model that React allows via its virtual DOM, but compile all that code away, so you end up with code das works without a virtual DOM. Direct DOM interactions are faster and you don't have to bring a whole VDOM library.