Removing React.js from the codebase and adapting Htmx for UI interactivity (2023)(misago-project.org)
245 points by Ralfp 1 day ago | 180 comments
tl;dr: Misago (Django forum software) is removing React.js in favor of HTMX to eliminate the duplication of rendering logic between Django templates and React components, which slowed development, complicated plugins, and duplicated translations. Since forum interactivity is largely isolated to specific UI elements, HTMX's declarative HTML-swapping approach fits better than a full SPA. Early migration steps (account settings, threads lists) have already cut misago.js by ~85kb gzipped, with a full transition planned through late 2024.
HN Discussion:
  • HTMX is a great fit for forum software and server-rendered content
  • HTMX works well across many web apps including PWAs and replaces React/Vue effectively
  • HTMX struggles with performance when responses become large and complex
  • HTMX lacks proper tooling like Storybook for frontend development
  • Alternative server-side rendering approaches like PyView or Django REST APIs are worth considering