Svelte Tutorial for Beginners - Component Events [2/2] - Event Forwarding
lihautan
@lihautanAbout
Hi ๐ , I am lihautan (full name Tan Li Hau) a frontend engineer at Shopee Singapore. 5 things about me ๐ 1๏ธโฃ I grew up in Penang, Malaysia (a place with great food ๐คค ) 2๏ธโฃ I am a core maintainer of Svelte https://github.com/sveltejs/svelte 3๏ธโฃ I love frontend technologies ๐ 4๏ธโฃ I love sharing tips on Svelte, React, CSS 5๏ธโฃ I love explaining things one layer of abstraction below ๐ฅฐ If you like what I am doing, consider buying me a coffee https://www.buymeacoffee.com/lihautan
Latest Posts
Video Description
DOM events bubble. When an event happens on an element, it first runs the handlers on it, then on its parent, then all the way up on other ancestors. Do component event works the same way? Does it run the handler on the component, then on its parent component, then all the way up? You'll find in the video that, the answer is no. And we are going to take a look how we can recreate the event bubbling behaviour for component events. Introduction 00:00 DOM event bubbling 00:29 Component event forwarding 03:41 DOM event forwarding 08:41 --- ๐ป REPL https://svelte.dev/repl/cfcb6407b0c44b6298a4fd27f7aec109?version=3.35.0 ๐ง 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: Event forwarding https://svelte.dev/tutorial/event-forwarding Svelte Tutorial: DOM Event forwarding https://svelte.dev/tutorial/dom-event-forwarding JavaScript.info: Event bubbling and capturing https://javascript.info/bubbling-and-capturing ๐ฅฐ 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
You May Also Like
Upgrade Your Camera Gear
AI-recommended products based on this video

EMEET 2024 Upgraded C960 Webcam for PC, Autofocus, 1080P HD, 73ยฐ View Angle, Computer Camera w/Privacy Cover and Microphone, Plug and Play USB Webcam for Video Calling/Zoom/Teams/Google Meet

EMEET C960 Webcam with Tripod, 1080P Webcam with Microphone, Adjustable Height Mini Tripod, C960 Web Camera with Privacy Cover, Plug & Play with Stand for Zoom/Skype/YouTube/FaceTime

EMEET C960 Webcam with Tripod, 1080P Webcam with Microphone, Adjustable Height Mini Tripod, C960 Web Camera with Privacy Cover, Plug & Play with Stand for Zoom/Skype/YouTube/FaceTime

SD Card Reader for iPhone iPad Camera,Dual Card Slot Memory Card Reader Supports SD and TF Card Trail Camera Viewer Sd Card Adapter Portable Micro Sd Card Reader No Application Required Plug and Play

Blink Outdoor 4 (newest model) โ Wireless smart security camera, two-year battery life, 1080p HD day and infrared night live view, two-way talk. Sync Module Core included โ 3 camera system Reducing CO2

Apple iPad 11-inch: A16 chip, 11-inch Model, Liquid Retina Display, 128GB, Wi-Fi 6, 12MP Front/12MP Back Camera, Touch ID, All-Day Battery Life โ Blue EPEAT









