background icons
background icons 2

Video Belajar

Tonton dan pelajari berbagai topik menarik melalui video pembelajaran eksklusif dari Channel lihautan.

lihautan

1713

Svelte Tutorial for Beginners - svelte options

svelte options allows you to specify compiler options to your component.

Introduction 00:00
In this video, we are going to explore 3 different svelte options:

namespace 03:56
this option allows you to specify the namespace used to create the elements
eg: namespace="svg"

accessors 07:50
this option allow you add getters and setters to your Svelte component props

immutable 13:48
if you never mutate your state, you can use this option to tell the compiler that a simple referential equality checks to determine if values have changed is good enough

---

💻 REPL https://svelte.dev/repl/b6331086343e466dbc82693a6da00e9b?version=3.38.2

🎧 Svelte Tutorial for Beginners https://www.youtube.com/playlist?list=PLoKaNN3BjQX3mxDEVG3oGJx2ByXnue_gR

📚 Related Resources
Svelte https://svelte.dev
Svelte REPL https://svelte.dev/repl
Svelte Tutorial svelte:options https://svelte.dev/tutorial/svelte-options

🥰 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 #sveltetutorial #sveltebeginner

Thanks for watching 🥰 -- with love, Li Hau