🔥 I've got a 10-tweet crash course for you! 👇
(Spoiler alert: Svelte is so intuitive and easy to use that you may feel like you already know it! 🥳)
#javascript #svelte
It's super easy to do asynchronous stuff like API requests with Svelte.
We can simply {#await} a Promise to resolve, displaying a "loading" placeholder before the result is ready.
Note that we await the Promise in the template section, so no `await` keyword in <script>.
Svelte comes with neat animated transitions built-in. Try giving your components a `transition:fly` property! There're also other types like fade, slide etc. You can use also `in:` `out:` to separately define intro/outros.
Attached to the transition prop are the params.
Have fun! 🥳
(Thread crash course format inspired by @chrisachard 😁)