As others mentioned, not great for rich interactivity. Example: Render a scrollable list and you need to change contents of the li items mid scroll - it resets the scroll position to the top because of how it replaced the entire HTML on render. There are workarounds you can do, DOM hacks, but they aren’t ideal. React is designed around that kind of thing. They do some funny magic under the hood to support seamless DO…
I haven’t used it with htmx, but DOM morphing seems like it’s probably a good solution to this. https://v1.htmx.org/extensions/morphdom-swap/
This issue is reporting the same kind of thing - text selection is lost on re-render