News for hackers. Stuff that matters.
Re:Ask HN: What happened to vanilla HTML/CSS/JS development? by symlinkk on Friday September 09, 2022 @02:08PM (#32782836)
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.
Re:Ask HN: What happened to vanilla HTML/CSS/JS development? by yCombLinks on Friday September 09, 2022 @03:59PM (#32784139)
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
Re:Ask HN: What happened to vanilla HTML/CSS/JS development? by Existenceblinks on Friday September 09, 2022 @03:58PM (#32784131)
because `react-dom` is bloat [minified]

- [email protected] [3.7 kB]

- [email protected] [36.5 kB]

- [email protected] [38.1 kB]

- [email protected] [130.5 kB]

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

Re:Ask HN: What happened to vanilla HTML/CSS/JS development? by vi2837 on Friday September 09, 2022 @04:38PM (#32784618)
Just try Preact
Re:Ask HN: What happened to vanilla HTML/CSS/JS development? by Existenceblinks on Friday September 09, 2022 @07:40PM (#32786187)
Preact is good except it tries to be in React league. The author has greater knowledge, enough to left React behind.