Skip to main content

One post tagged with "svelte"

View All Tags

ยท 9 min read
Thomas "Morphyish" Sauques

Event handling is an important part of any Front End framework. They are the bread and butter of user interactions.

While you need to listen to native events, such as scrolling, pointer events, keyboard events, etc... You also need to consider custom events that tie together your components.

Props go down, events go up.

I recently started working on a component library with Svelte, and struggled quite a bit with event handling, event forwarding to be precise.