top | item 42863362

(no title)

benmccann | 1 year ago

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.

discuss

order

gedy|1 year ago

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.

RadiozRadioz|1 year ago

I was commenting specifically about on:change

benmccann|1 year ago

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