Hacker News new | ask | show | jobs
by sibeliuss 983 days ago
Comparing the two: I have a hard time understanding how one could write FE code using classes (Stimulus) in 2023, when simple functions with inputs and outputs are there for the taking. It's just asking for trouble and hidden complexity. Choose wisely!
1 comments

> when simple functions with inputs and outputs

And the state library, and the hooks for side effects, and the SSR, and the hydration, and the VDOM, and... It's not that simple.

I know react is moving towards SSR quite a lot but I don't think hydration or SSR are actually common for react devs to care about. You also have very similar issues with hotwire, so I'm not sure it makes React more complicated.

For all its flaws, React is still extremely "small" as far as front end and server side front end goes.

That might change with the increased push towards next.js and SSR though.

Very true. For every day dev, all the framework bits are stuff the average dev doesn't need to know at all. Ie, none of the devs at my company know anything about that, and that's just fine. We get a ton of work done.
Functional/OOP flamewar is starting...
On the FE, this is already a settled topic. Who wants to go back to `this`? Um... nobody.