Htmx vs. React: A Complete Comparison – Semaphore
semaphoreci.com
Htmx vs. React: A Complete Comparison – Semaphore
1–10 of 88 posts
Re: Htmx vs. React: A Complete Comparison – Semaphore
#2Apple vs Oranges: A complete comparison.
Re: Htmx vs. React: A Complete Comparison – Semaphore
#3We've been using Turbo for over a year now (similar idea to Htmx). Pretty happy not to be using React anymore. Most of the complexity is offloaded to the backend where we can handle it better with a typed language system and no middle layer (e.g. GraphQL) between our app and the database.
TypeScript is not typed fwiw, e.g. `as any`.
Re: Htmx vs. React: A Complete Comparison – Semaphore
#4As much as React is too wordy and bloated these days, this comparison seems extremely unfair, bordering on biased.
Re: Htmx vs. React: A Complete Comparison – Semaphore
#5For web apps, you can't use react without react-dom. That adds 131kb. (for react-dom.production.min.js@18.2.0) Very misleading to say react is 6kb in weight.
Re: Htmx vs. React: A Complete Comparison – Semaphore
#6React weight 6.4 kB? In which universe?
React-dom alone is 42kB gzip.
Re: Htmx vs. React: A Complete Comparison – Semaphore
#7React weight 6.4 kB? In which universe? React-dom alone is 42kB gzip. https://bundlephobia.com/package/react-dom
Preact is 3kb and works as a drop in replacement for React (most of the time). It's also way faster.
Re: Htmx vs. React: A Complete Comparison – Semaphore
#8As a backend engineer I Still haven’t managed to learn how react data management or JSX works. Every time I try to dive into it I get a strong migraine. I hope something easier comes popular before I would need to learn FE
Re: Htmx vs. React: A Complete Comparison – Semaphore
#9WordPress just implemented the interactivity API, inspired of Alpine.js, using parts of Preact. It's really great and extensible, 10 kB only.
https://wptavern.com/interactivity-api-prepares-for-its-offi...
Re: Htmx vs. React: A Complete Comparison – Semaphore
#10As a backend engineer I Still haven’t managed to learn how react data management or JSX works. Every time I try to dive into it I get a strong migraine. I hope something easier comes popular before I would need to learn FE
Have you looked at htmx? Or even full vanilla?