The world's worst #react project uses hundreds upon hundreds of lines of react-use-form spaghetti to do something that literally takes ~40 lines as a vanilla web component 🤦
https://codepen.io/SirPepe/pen/mybzrVb
[#]webcomponents
=> More informations about this toot | More toots from sir_pepe@mastodon.social
@sir_pepe I found an A tag that had no HREF but had an onclick event handler that compiled and constructed, on the fly, the protocol, host, path, added /somepage, and topped it off with the search params and sent you there. it was like 40 lines of code.
its really sad the way #webdev is going these days.
=> More informations about this toot | More toots from PetterOfCats@mastodon.world
@PetterOfCats I once wrote something just like that! As a giant string for the HTML attribute onclick even. It was the only way to cram ANY custom behavior into a system for which my customer had lost the source code but which needed a patch when IE 8 went away. Fun times.
=> More informations about this toot | More toots from sir_pepe@mastodon.social This content has been proxied by September (3851b).Proxy Information
text/gemini