Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There are no layers if all you want to do is add an onclick handler.


there 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


So don’t do that. Just open a text editor, write <button onclick="thing()">Click Here</button>, and celebrate.


i'm glad we are on the same page.


> i'm glad we are on the same page.

Only until the event handler runs :-)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: