hx-get attribute changes its behavior: when clicked, it loads content from the server and replaces the current page. And the
hx-swap attribute configures how this replacement will happen.
<div hx-get="/hello" hx-swap="outerHTML"> <p>Hello, World!</p> </div>
A free Hypermedia Systems book on building hypermedia-based applications using HTMX and others has recently been released.
Example of using HTMX with WebSockets with a Go server:
The interactivity of search in this blog is implemented on HTMX.