Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
8n4vidtmkvmk
· 3y ago · 0 comments
so then you send HTML to the client, but then you still have to 'hydrate' it to make it interactive. and now you've reinvented React SSR.
Comments
[–]
jonomacd
3y ago
You don't have to hydrate the html as events get triggered from "hx-" attributes on the elements as rendered server side. htmx takes care of it for you.
[–]
8n4vidtmkvmk
OP
3y ago
So where are the event listeners then? On the body tag, and they bubble up and then examine the hx attribute? Is that how it works?