If you have a promise waiting for your data, {#await} block makes it easy to express your content in the loading π, resolved β and rejected β state
HTML doesn't have a way of expressing logic, like conditionals and loops. @sveltejs does.
Let's take a look at the 1st logic block in @sveltejs, π {#if} π
π𧡠[THREAD]
If you prefer watching video, the following thread is a summary from my @YouTube video
π‘{#if} is our 1st logic logic block in @sveltejs
π‘it allow us to conditional render content
π‘if comes with else, else if, just like you would expect in JavaScript
Another week on #CSSpodcast, this weeks topic is CSS Functions π
π§΅
CSS Functions provides runtime contextual expressions that return dynamic real-time value per the state of the browser per user in that moment
- global space, no need import
- can be nested, calc(var(--var))
- typed, eg: `rotate(45px)` will not work
- keep the function live, recompute on value changes and updates
- many of them are pure functions, however, counter-example: `counter()`