HTTP As The Driver Of Application State
HTML is limited in this regard for a few reasons
- Only
a
andform
can do network requests - Not all HTTP verbs are available
- State changes imply a complete page reload
HTMX
- any tag can create network requests
- all HTTP verbs are available.
- Requests send back HTML fragments that are then merged in the page.