Sandrico
Sandrico
@sandricoprovo.com
Software Developer ๐จ๐พโ๐ป ๐จ๐ฆ || Gamer ๐ฎ || Anime ๐บ
108 followers200 following10 posts
One of my favourite Svelte syntaxes: class:[class-name-here]={value-here}. This syntax gives you a quick way to conditionally add/remove classes based on state. It's equivalent to using a ternary to achieve the same. I think they cooked with this one ๐จ๐พโ๐ณ. Docs: svelte.dev/docs/svelte/...
You are up to date.