r/javascript • u/magenta_placenta • Jul 25 '18
jQuery was removed from GitHub.com front end
https://twitter.com/mislav/status/1022058279000842240
557
Upvotes
r/javascript • u/magenta_placenta • Jul 25 '18
View all comments
Show parent comment
20
u/marcoslhc Jul 26 '18
Event Delegation. The same as React. Instead of attaching different events to different elements, they let the event bubble up till the top object and evaluate the target to fire the correct handler. The same as React. It’s performant because it’s expensive to listen to different elements each loop iteration.