5 ms·
I sort of want to check this out but as someone who’s not really felt difficulty using react or a bundler I’m still not sure if it would be useful. How are the
by antihero 2y ago
I sort of want to check this out but as someone who’s not really felt difficulty using react or a bundler I’m still not sure if it would be useful. How are the static types with something like HTMX?
- hipadev23 2y ago> How are the static types I think you may be misunderstanding what htmx does
- antihero 2y agoSurely there’s data involved at some point that needs to have a shape?
- yawaramin 2y agohtmx is a JavaScript library which interprets a set of HTML attributes and JavaScript events. It doesn't have anything to do with static typing. However, it's fairly easy to add a statically-typed layer on top of it eg https://github.com/yawaramin/dream-html https://github.com/yawaramin/dream-html
- antihero 2y agoThe events have types though, and if you’re pulling data dim the server that also has in theory a type.
- yawaramin 2y agoSure, but htmx doesn't have any opinion that those types should be statically checked. Anyone diligent enough can try to enforce it with enough work, but the juice may not be worth the squeeze.