Frontend Masters Boost RSS Feed https://frontendmasters.com/blog Helping Your Journey to Senior Developer Thu, 20 Nov 2025 00:03:06 +0000 en-US hourly 1 https://wordpress.org/?v=6.9 225069128 Stop Using CustomEvent https://frontendmasters.com/blog/stop-using-customevent/ https://frontendmasters.com/blog/stop-using-customevent/#respond Thu, 20 Nov 2025 00:03:05 +0000 https://frontendmasters.com/blog/?p=7809 A satisfying little rant from Justin Fagnani: Stop Using CustomEvent.

One point is that you’re forcing the consumer of the event to know that it’s custom and you have to get data out of the details property. Instead, you can subclass Event with new properties and the consumer of that event can pull that data right off the event itself.

]]>
https://frontendmasters.com/blog/stop-using-customevent/feed/ 0 7809