Svelte @svelte.dev · 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...

85 likes 3 replies

?

Replies

Patrick L. Gray · Dec 5

This will reduce a fair amount of lines of code!

Rob Balfré · Dec 4

TIL button type of reset ... HOW DID I NOT KNOW THAT!!

Svelte · Dec 5

Day 5 — it's a three-in-one kind of day! `new MediaQuery(...)` lets you use media queries reactively. prefersReducedMotion is an instance of MediaQuery that makes it easier to respect users' accessibility preferences - docs svelte.dev/docs/svelte/... - demo svelte.dev/playground/8... there's more!