DEV Community

Discussion on: The future of the web: navigating HTMX, vanilla JS, and React

Collapse
 
itarrant profile image
Iain

HTMX works by receiving a html string as a response and replacing/ swapping the matching CSS selector in the dom. In this case the innerHTML of the #like-counter.
This is if course only a simple example and much more elaborate things can also be done.

Collapse
 
webjose profile image
José Pablo Ramírez Vargas

Thanks. I don't debate HTMX's abilities. I just wanted to put out there that the article seems to have an intention to mislead readers making them think the code snippets presented produce equal/equivalent results. They don't.