Event Listeners: Delegation VS Direct Binding

1 · Jason Miller · Aug. 28, 2020, 3:40 p.m.
Image courtesy of NASA The DOM provides a mechanism for registering event handlers that supports two techniques for observing events: directly-bound per-element listeners, and “delegated” listeners that receive events originating from within an entire subtree. Frameworks and libraries that abstract event listener registration generally choose between the two approaches, yet...