htmx 4.0 is under construction — migration guide

HTML can do that!?

build modern UIs with the simplicity of hypertext

~10k min.br'd 0 dependencies 14 extensions

motivation

  • Why should only <a> & <form> be able to make HTTP requests?
  • Why should only click & submit events trigger them?
  • Why should only GET & POST methods be available?
  • Why should you only be able to replace the entire screen?

By removing these constraints, htmx completes HTML as a hypertext.

quick example

<button hx-post="/clicked" hx-swap="outerHTML"> Click Me </button>

When clicked, hx-post sends a POST to /clicked and hx-swap replaces the button with the response. No JavaScript.

book

Hypermedia Systems covers building Hypermedia-Driven Applications with htmx. Free online.

Hypermedia Systems

Hypermedia Systems

sponsors

Thank you to all our generous sponsors!

silver Sponsors

htmx is the successor to intercooler.js

ʕ •ᴥ•ʔ made in montana