Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

To be fair, assignments to variables still update the state of your component. `count += 1` will still update the state of your component. I think what you meant is that you now need to explicitly declare `count` as state. Personally, I think the magic of Svelte is that assignment part. And now the magic of Svelte works across files and even inside regular `.ts` and `.js` files!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: