Love this new feature!
Reposted from
Day 8 — we're calling this 'function bindings'. You know how you can do `bind:value={value}`? You can now do this...

bind:value={getValue, setValue}

...which lets you transform and validate data

🎁 docs svelte.dev/docs/svelte/...
🎁 demo svelte.dev/playground/1...

Comments