DEV Community

Discussion on: SvelteJS: The next big UI framework

Collapse
 
stegriff profile image
Ste Griffiths

Grateful that you wrote this as it means I don't have to look up elsewhere what Svelte is all about :) And your description was very easy to digest! I like that they have gone for the very vanilla JavaScript feeling, but I'm not a big fan of things like the $: label - seems like a bit of hack... 😅

Collapse
 
mstamstrom profile image
Marcus Stamström

Thank you for the nice comment 😊

The $: is valid JavaScript, however I get that it can feel a bit unusual at first. I think we can get used to it, since it gives so much value. You can for instance also use it for watching log messages,

$: console.log(value)

That will print every time value changes, which is very useful for debugging as well.