Htmx is essentially how Facebook was built before React. Everything was server rendered in PHP and you could use special HTML tags to trigger partial updates. Ajax requests would return HTML fragments that would be injected into the correct part of the page.
It worked fine for simple use xases, but it was someone brittle and began to fail as soon as you wanted more than basic interactivity.