I never worked with HTMX, but I think that frameworks like next.js or Astro, that can render server side and client side with the same code, are superior.
HTMX may work well for many websites though, especially if they are using mostly static content with limited interactivity.
Astro renders JSX to html, what happened when you tried to render a table row without a wrapper table rag? And more importantly, what is a table row doing outside of a table?
Astro removes the html tags and just renders text, so I can’t return a new table row for simple crud setup. Only when it’s a valid table does it not strip out the html.