Micro-horror of this moment:

- In the HTML/DOM event model, events have names like "click" or "submit"; you attach an event handler to a tag by saying "onclick" or "onsubmit".

- Apparently, for thirty years, I've been writing this wrong, like "onClick" or "onSubmit". Web Browsers just sorta roll with this and convert to lowercase. React/Preact JSX do the same conversion and do not flag an error, they pass it through and then the browser accepts it.

(post 1 of 2)

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/mcc/statuses/116099262436219115 on your instance and quote it. (Note that quoting is not supported in Mastodon.)