DEV Community

Discussion on: Svelte, why so much hype ?

Collapse
 
chiubaca profile image
Alex Chiu

im still confused with how svelte works once it is compiled. There still must be some sort of runtime or overhead that is bundled into your compiled code that makes it all work surely ?

Collapse
 
craicerjack profile image
Carlos

No. As far as Im aware the compiler compiles it into vanilla javascript that will run directly in the browser so theres no need for a runtime.

Collapse
 
chiubaca profile image
Alex Chiu

hmm interesting, there must be something which makes it reactive though? event listeners or something? I should probably stop speculating and just read the source code :D

Thread Thread
 
annietaylorchen profile image
Annie Taylor Chen

dev.to/kevinast/responsive-svelte-...

You can read more here perhaps (I said perhaps because it's still on my to-read list so I don't know if this answers your question.)