3 ms·
I think this should expose something like `_hyperscript.on(domElementHere, 'your hyperscript string')` and that could resolve the co-locality concern.
by mrozbarry 5y ago
I think this should expose something like `_hyperscript.on(domElementHere, 'your hyperscript string')` and that could resolve the co-locality concern.
- recursivedoubts 5y agowe are working on supporting _hs files and you can write event handlers against other elements: on click from #some-btn log 'The button was clicked' end However, we really lean towards directly embedding the scripts on HTML elements for Locality of Behaviour https://htmx.org/essays/locality-of-behaviour/ https://htmx.org/essays/locality-of-behaviour/