7 ms·
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
by benmccann 2y 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.
- gedy 2y agoSure, 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 2y agoI was commenting specifically about on:change
- benmccann 2y agoI believe the reason for that was to enable event forwarding, which was a highly requested feature and makes a lot of things easier.