Video details

Svelte 101: {#if} block - Our 1st logic block to conditionally render elements

Svelte
04.08.2021
English

HTML doesn't have a way of expressing logic, like conditionals and loops. Svelte does.
In this video, we are going to take a look at how we can use {#if} to conditionally render elements, and what are the common patterns of using a logic block.
---
đź’»
REPL https://svelte.dev/repl/e1b972cf050d4b3d9ea57e5d7090f2c1?version=3.37.0
đź“š
Related Resources Svelte https://svelte.dev Svelte REPL https://svelte.dev/repl Svelte Tutorial: If blocks https://svelte.dev/tutorial/if-blocks
🥰 Support me https://www.buymeacoffee.com/lihautan
đź”—
Want to learn more from me? Check out these links:
Twitter: https://twitter.com/lihautan Blog: https://lihautan.com/ Newsletter: https://lihautan.com/newsletter
#svelte #svelte101
Thanks for watching 🥰 -- with love, Li Hau