3 ms·
When I first saw hyperscript in the HTMX docs (they're made by the same person), it also struck me as an unholy abomination. But in practice, it's been pretty n
by nisegami 4y ago
When I first saw hyperscript in the HTMX docs (they're made by the same person), it also struck me as an unholy abomination. But in practice, it's been pretty nifty. It provides a concise way to perform common actions that adheres to the idea of locality of behavior that HTMX and Tailwind both offer as well. I still think I might come to regret it, but it doesn't seem like it would be hard to rip it out and replace it with plain JS. For example, I'm mostly using it to do stuff like:
on click toggle .hidden on .modal
- toastercat 4y agoI believe you are talking about this hyperscript: https://hyperscript.org/ https://hyperscript.org/ Whereas the parent post is talking about: https://github.com/hyperhype/hyperscript https://github.com/hyperhype/hyperscript Unfortunately, the creator of https://hyperscript.org/ https://hyperscript.org/ hijacked the name even when the term "hyperscript" is still used to refer to dominictarr's project and the `h('p', 'hello world') API of declaring templates in JavaScript (as seen in React, Preact, Mithril, etc.).