Removing React.js from the codebase and adapting Htmx for UI interactivity (2023)
Trending on Hacker News: Removing React.js from the codebase and adapting Htmx for UI interactivity (2023) (198 points / 147 comments, via misago-project.org)
In one line
Started by rafalp on Dec. 12, 2023 in the Roadmap category. 6 replies, last one from July 25, 2024.
Opening excerpt
But here’s a thing: there’s a lot of forum software out there that still does the old way of rendering as much as possible on the server and using some JavaScript on client to improve its interactivity here and there. And people are happy with that . And this approach has none of the above issues.
Internet forum software has plenty of interactivity, but this interactivity is isolated to specific places on the page. Moderation actions, watching a thread, writing a reply, seeing last notifications, voting in a poll. All this stuff can be achieved without React.js and was achieved without it for years before we’ve decided that full page reload is something that needs to be avoided.
Now, what’s HTMX? HTMX is a tiny library that lets developers specify parts of HTML as dynamic islands that can be swapped by new server-rendered HTML on interaction. For example, list of actual threads is one such (large) island.
HTMX is declarative way of doing $.get(“url”, “#outlet”) we’ve did in jQuery 20 years ago. Or Rails Turbolinks.
(Excerpted from the original; full article via the source link below.)
This story hit the Hacker News front page today (198 points / 147 comments, via misago-project.org). Our Tech Radar aggregates daily signals on AI engineering, backend architecture and DevOps — browse the related services and further reading below, or get in touch with our team.
Source: Hacker News