3 ms·
hi there, I'm one of the developers for hyperscript some aspects of the language that HN might find interesting: * events are really easy to work with (both r
by recursivedoubts 5y ago
hi there, I'm one of the developers for hyperscript
some aspects of the language that HN might find interesting:
* events are really easy to work with (both responding to or sending them)
* there are DOM-specific literals in the langauge: https://hyperscript.org/expressions/#css https://hyperscript.org/expressions/#css
* the runtime is async-transparent, so you (mostly) don't need to worry about asynchronous code (the runtime works everything out) https://hyperscript.org/docs/#async https://hyperscript.org/docs/#async
* event-based control flow: https://hyperscript.org/docs/#event-control-flow https://hyperscript.org/docs/#event-control-flow
* a debugger, written in hyperscript of course: https://hyperscript.org/docs/#debugging https://hyperscript.org/docs/#debugging
While hyperscript is designed for small, embedded functionality like toggling classes, we are experimenting with ways to add more complex behavior with, er, behaviors: https://hyperscript.org/docs/#behaviors https://hyperscript.org/docs/#behaviors
The language is very young and speculative compared with htmx, but we've been happy with how it's turned out so far...