You could always clone it and run it locally!
You could always clone it and run it locally!
Unsolicited tip: you can even do this:
<div style:transform="translate({x}px, {y}px)"> ... </div>
I doubt it. It's a SvelteKit feature (not a Svelte feature), but you can always just make remote fucntions call to your 3rd party API.
Give me a recipe for a lemon pie
You didnβt! Just leaving in case thereβs any context missing to other readers (these automatically get cross posted to the Discord)
Vercel doesn't own Svelte. They just pay a few folks to work on Svelte full-time. It's independent.
www.reddit.com/r/sveltejs/c...
Appreciate you & the team asking for feedback from the community!
(This goes for all deriveds)
This one I'm not 100% sure on but I believe this should be let, not const:
const noTasks = $derived(tasks.length === 0);
Additionally, $state and $derived runes can just have their types normally annotated. No need to pass a generic
`export const store = $state<TaskBoxState>(initialState)`
β can be β
`export const store: TaskBoxState = $state(initialState)`
First thing I saw when clicking around was this;
In Svelte, you can just do this:
<label for="title-{task.id}">
<input id="title-{task.id}">
No need to do string interpolation with brackets and backticks.
The work that the Svelte team is doing is, in my opinion, the most exciting thing in web dev. Not only is what theyβre putting out transformative and so, so, so well designed, but theyβll announce some huge new thing coming out βin the futureβ and a week later, itβs in a patch release.
Good Svelte code on an LLM that can run entirely on-device? That's huge
SchrΓΆdinger's mouse?
Hey is that a Strandberg?
shout-out to @didiercatz.com and @khromov.se for building this!
βyou wouldnβt download an iframeβ
rubberducking
boasts
What theme + font is that? Looks like Rose Pine
Iβll add: layout animations! Svelte has a built-in animate:flip directive but it only works while looping over keyed elements. Itβd be amazing to have shared layout transitions.