Htmx vs. React: A Complete Comparison – Semaphore
11–20 of 88 posts
Re: Htmx vs. React: A Complete Comparison – Semaphore
#12As 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?
Re: Htmx vs. React: A Complete Comparison – Semaphore
#13As 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
#14As 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
JSX is just one-to-one syntactic sugar for a createElement call ( https://react.dev/reference/react/createElement ). You don't even need to use it with React, any library that defines an identical function interface will do.
Re: Htmx vs. React: A Complete Comparison – Semaphore
#15As 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
#16React 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
#17For 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
#18As 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
#19We'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`.
So because it has a feature to disable typing it is not typed? Would you say the same thing for any language that has similar "unsafe" flags, like rust or basically all the others?