Video details

Svelte 101: Component Events [1/2]


Components in a lot of ways are similar to DOM elements. Attributes to elements vs props to components; DOM events to elements vs component events to components.
In this video, we are going to explore why and how to implement component events.
Introduction 00:00 Passing callback functions into component 00:34 Why callback function may not be the best way? 04:11 How to use component events 07:42 Component event helps decouple event dispatching and event handling 12:57
Related Resources Svelte Svelte REPL Svelte Tutorial: Component Events
🥰 Support me
Want to learn more from me? Check out these links:
Twitter: Blog: Newsletter:
#svelte #svelte101
Thanks for watching 🥰 -- with love, Li Hau