Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

But if you’re going to use a framework like HTMX and the others you mentioned, why not just use React? Vanilla JS is great because it’s universally available, if you’re choosing to drop that advantage I would just go with React.


With react you need a build / transpile stage and have to handle webpack / babel / whatever. You can just use plain tags in html to use htmx and alpine, you just have to include them


because `react-dom` is bloat [minified]

- hyperscript@2.0.2 [3.7 kB]

- htmx.org@1.8.0 [36.5 kB]

- alpinejs@3.10.3 [38.1 kB]

- react-dom@18.2.0 [130.5 kB]

Right now my whole (everything js) really complex application is 150 kB minified. Imagine adding React .. urghh unreasonable.


Just try Preact


Preact is good except it tries to be in React league. The author has greater knowledge, enough to left React behind.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: