Demo 0 | Build your own HTMX

This demo uses a simple onclick attribute on the button to trigger our htmx function.
The button is defined like this:

      <button onclick="htmx(this, 'get')" hx-get="partial.html">
        Click me!

Clicking the button issues a real HTTP request to another HTML file (check out your network panel!)
In the next section, we will automatically wire up the event listener, such that we no longer need onclick attributes or globally exposed functions.