DEV Community

Discussion on: SvelteJS: The next big UI framework

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.