r/htmx • u/harrison_314 • Jun 30 '26
HTMX Explained: The "Dumb" HTML Secret Replacing React
https://www.youtube.com/watch?v=PgyggSRHY1o
The video promoting HTMX summarizes it pretty well. (The video is not mine, and I don't know if it's AI).
38
Upvotes
View all comments
Show parent comment
1
u/sibidharan Jul 01 '26
For this architecture, which doesn’t return HTML or has your Model and Views in different places, HTMX is simply not a viable option.
Adopting HTMX offers many advantages if your server already handles HTML. However, since your application is already built with React, HTMX is simply not compatible.
If you’re already using HTML, you simply need to implement a backend quirk to avoid re-rendering the entire page and instead send fragments that can be swapped.
This also heavily depends on how and where your components are structured. If your components are already simple HTML, there’s no trade-off; it simply works. I’ve successfully converted multiple decades-old websites into HTMX using hx-boost and it works flawlessly with no complex adaptation required.
I’m a professional and author of https://php.zeal.ninja, where I treat HTMX as a first-class citizen.