Svelte @svelte.dev · Dec 3

Day 3 — you can now export snippets from a <script module> (terms and conditions apply) - docs svelte.dev/docs/svelte/... - demo svelte.dev/playground/1...

137 likes 10 replies

?

Replies

nasso @ AWOO · Dec 3

oh my god??????

skyfall · Dec 8

ooh i'd imagine library authors are gonna love this

Louis · Dec 4

I can finally say that Svelte has everything from React now, that I previously missed

Adam Rackis · Dec 3

Still no way to add state? React community discovered long ago that stateless components have very limited utility. The constant conversion from SFC to classes led many to just forgo the former altogether.

Svelte · Dec 4

Day 4 — specify a `defaultValue` on form inputs, and it will be used when the form is reset - docs svelte.dev/docs/svelte/... - demo svelte.dev/playground/b...

Brittney Postma · Dec 4

Oh, I like this

Federico Biccheddu · Dec 4

This seems perfect for an `Icon` component that hides the implementation of the icon itself!

Mat Simon · Dec 4

That's really cool, and I'm sure there are use cases where this will be extremely convenient. But out of the box I find it hard to find an actual use case for it. The demo seems to be a bit of an antipattern (I could achieve the same with simple components). Do you maybe have a real world example?