Hacker News new | past | comments | ask | show | jobs | submit login

Snippets are far more powerful than slots and so the change is not merely cosmetic. Snippets give you a way to create reusable HTML fragments within a component.



Sure, that is nice - though TBH that kind of feels like a workaround for Svelte's one file, one component design. React doesn't have this issue and can define as many components wherever you like.


I was commenting specifically about on:change


I believe the reason for that was to enable event forwarding, which was a highly requested feature and makes a lot of things easier.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: