3 ms·
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, i
by symlinkk 4y ago
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.
- Existenceblinks 4y agobecause `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.
- vi2837 4y agoJust try Preact
- Existenceblinks 4y agoPreact is good except it tries to be in React league. The author has greater knowledge, enough to left React behind.
- yCombLinks 4y agoWith 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