3 ms·
i cant count the number of times i've had to generate boilerplate + interfaces etc etc for something that would be as simple as an onclick (onClick?) handler wo
by acosmism 2y ago
i cant count the number of times i've had to generate boilerplate + interfaces etc etc for something that would be as simple as an onclick (onClick?) handler would have done. i have yet to actualize the serious promises of this ecosystem in any meaningful way and it doesn't seem to get better. also jsx is ugly.
- robertoandred 2y agoI can count it: zero. Onclick handlers work exactly as they always have.
- acosmism 2y agosure the browser accommodates. now how about dealing with wrapping everything in unnecessary empty tags and tree shaking and bloat etc. specialized dev inspector tools for each framework etc. there are layers...
- robertoandred 2y agoThere are no layers if all you want to do is add an onclick handler.
- acosmism 2y agothere is. there is a build system. there are probably some typescript interfaces and lint checks you need to pass etc probably some other framework you need to familiarize yourself with if you are data binding etc. i'm not saying any of this is inherently bad - what im saying is 99% of the time this is overkill
- robertoandred 2y agoSo don’t do that. Just open a text editor, write <button onclick="thing()">Click Here</button>, and celebrate.
- acosmism 2y agoi'm glad we are on the same page.
- lelanthran 2y ago> i'm glad we are on the same page. Only until the event handler runs :-)