3 ms·
the idea with hyperscript is to provide a general, event oriented language that can be embedded cleanly directly in HTML normal on* attributes are fine, but th
by recursivedoubts 4y ago
the idea with hyperscript is to provide a general, event oriented language that can be embedded cleanly directly in HTML
normal on* attributes are fine, but they aren't general (e.g. htmx fires a bunch of events you might want to hook into, and you can't use normal on* attributes to cathc them)
hyperscript also has a lot of features that are DOM oriented (e.g. query literals like <div.foo/>)
certainly not everyone's cup of tea, but it dovetails nicely with htmx and fills a need for a general, event oriented scripting language to complement it