3 ms·
> An attractive future direction might be to re-implement Htmx in React: The server sends a JSON blob that React converts into virtual DOM components. Isn't th
by stavros 2y ago
> An attractive future direction might be to re-implement Htmx in React: The server sends a JSON blob that React converts into virtual DOM components.
Isn't this exactly what HTMX was replacing? The client needing to have a ton of logic and state?
- klysm 2y agoTurns out there’s good reasons to do that
- nsonha 2y agoOnly veteran web devs are able to come up with such a bonker idea that not managing state explicitly is somehow better. That's just basic programming but I guess they don't need that to write html.
- NoGravitas 2y agoYeah, a lot of the article was reasonable, talking about implementation details they don't like, but once they started talking about problems with local state I feel like they went off the rails. The server needs to be the source of truth for application state, with the application pushing state changes through POST/PUT/DELETE requests.
- stavros 2y agoI agree, no matter how much we don't like reloads, the fact that they reset your whole client state makes things much simpler.