sure 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...
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.