Boris Eetgerink

February 20, 2023

htmx: a RESTful SPA companion

In my article about a RESTful SPA I listed a few requirements:

  1. It should work with rendered HTML instead of JSON.
  2. It should intercept links and form submissions.
  3. It should update sections of the page based on the response from the server.
  4. It should update the browser URL and navigation history.
  5. It should update the browser title with the title from the response.

It turns out that htmx does exactly that, and so much more. Please star it on GitHub and give it a try!

About Boris Eetgerink

Hey, thanks for reading my blog. Subscribe below for future posts like this one and check my personal site in order to contact me.