Removing React.js from the codebase and adapting Htmx for UI interactivity

misago-project.org

59 points by Ralfp 4 hours ago


snorremd - 42 minutes ago

I think HTMX is a great fit for forum software. Forum websites mostly deliver non-interactive content in the form of text and maybe some audio, video, or image content. All of this can be represented as HTML and CSS.

With HTMX you can do partial rendering and live updates via server-sent events. This gets you most of the way to the "client side" feel where things load dynamically based on user actions.

The only properly dynamic SPA-like feature in a forum I can think of is a WYSIWYG editor, but that you can build as a web component. Maybe a flexible highlight and quote system would be a bit difficult in pure HTMX (think of the comment functionality in Medium posts). So you'd want to build a few things in client side JS. But the main experience could very well be built with HTMX.

prologic - 37 minutes ago

I basically use HTMX for all my Web Apps, including PWA(s) that run as ~near native apps on iOS/Android. It's great! I aso pair this with DaisyUI+TailwindCSS. YOu really can't go wrong, there is something quite pleasant about writing your web apps in ordinary HTML with partials and the extensions that HTMX adds to the browser for SPA-like interactivity.

sgt - 2 hours ago

Happy they did this. Htmx is a great fit for server rendering - which in many or most cases is what you should do in any case. You can always put a mini VueJS or ReactJS app inside of a template for a very custom interactivity.

- 2 hours ago
[deleted]
thrownaway561 - 6 minutes ago

This happened 3 years ago... wondering what makes it news worthy today?

- an hour ago
[deleted]
Ralfp - 2 hours ago

Archive link: https://archive.ph/bLu1Z

- 2 hours ago
[deleted]
leviyi - 15 minutes ago

[flagged]

asdfsa32 - 2 hours ago

Great, now you can't offload your FE to a CDN.

But on serious note, htmx is basically a solution in the search of a problem. It is the new hype.

Or rather, a solution that overlooks 2 decades of learnings. Yes, for a small set of projects htmx is okay, but even then, where htmx is ideal, static is king, and once static is not good enough, htmx sooner or later starts to feel like the XAML and BPEL soap.

The fundamental problem is that it is pretending to be a declarative language while entirely imperative.

mmmmbbbhb - 34 minutes ago

"JavaScript ... *squints*... library?" What's that, a thing my llm uses for websites? Ok. *closes thread*