HTMX is a small (~14k), dependency-free, extendable frontend framework, with a very straightforward approach. It extends the Hypertext capabilities of HTML, without the need of using JavaScript.
Basic concepts:
- Any DOM element can trigger HTTP requests
- Any HTTP methods can be used (not just
GET
andPOST
) - The response from the server is HTML or HTML fragment
- State management is is server-side, frontend is simple and dummy