Code is meaningless
Code is meaningless
· One min read
Code is meaningless
Data is meaningless
UI is meaningless
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.