I encourage everyone to give it a whirl. Zone.js is no longer needed and with Signals and Standalone Components it is now proper good. Developer experience, too, with Vite and esbuild.
React is winning by default and slowing innovation
131–140 of 866 posts
Re: React is winning by default and slowing innovation
#132I don't like to criticize too much any more, but I think in general this is a poor article. It doesn't really tell us anything other than latching onto someone else's opinion -- Rich Harris told us virtual dom is pure overhead, ok, but what's your opinion -- or referring to technical debt with React, as if it doesn't exist in every other project, or vaguely complaining about suffocating something.
I mean the job of these frameworks is to update a page when you change state. That's it. If the world has decided React is good enough in all or many aspects of using it, so be it. If The Guardian rewrote something in Svelte and nobody noticed the improvement that apparently objectively exist, what's the point?
Re: React is winning by default and slowing innovation
#133The first programming language I learned was Java as a teenager. When I started actually programming as an adult, I used C#. As my career has gone on, it's been on a very definite path down the layers of abstraction and now I write C and assembly. I just got a new job and my first task is fixing up a vibe coded react native app. Holy hell I have never hated programming more than I do now. The absolute mess that is ty…
Re: React is winning by default and slowing innovation
#134Earlier quoted context omitted.
Actually, React's problem is that it's the inverse of how HTML and JavaScript works in terms of how to handle callbacks. Of the major UI frameworks, it is the only one with this quality (Vue, Svelte, Angular, Solid, etc. use signals). This inverted behavior is the cause of most of the pain and footguns in React and React Hooks because the way state behaves in a React component is not the way state behaves in any othe…
Technically in React, the reactive callback is still the event handler. It's a two-step process where your event handler is evaluated first, then re-evaluates the component tree which changed as a result of the handler. In your JSFiddle example, if you modify `onChange` to print a console log instead of setting state, you'll see that it doesn't run the component function again. So really, the key difference between R…
Re: React is winning by default and slowing innovation
#135realistically i've worked at very few companies whose delivery is held back meaningfully by the framework something is built in. when there's friction, it's much more likely to come from poor planning, or constantly adding more functionality without stopping to reconsider architecture, or one of a thousand more organizational issues. the innovation delivered by basically anyone working in software is extremely rarely…
Re: React is winning by default and slowing innovation
#136React is winning because its really good. Even if the cost is an extra few milliseconds of render time and few extra hours of dev time figuring out things like hook dependencies. If React starts taking a backseat, it'll be because its no longer really good. And, to be fair: I've started to see this happen. Next & Vercel have totally taken over the React world, and they've proven to make quite poor architectural decis…
These things are adding up. Web would be much more pleasant without React. There are many better options out there.
Re: React is winning by default and slowing innovation
#137Every additional dependency is a cost associated with onboarding, maintenance and security issues.
Re: React is winning by default and slowing innovation
#138And I'm not saying this in a good sense.
In particular their developers demonstrate the same tendencies:
- unwillingness to leave behind all the years of experiences they've built on it. I'm not saying one should just for the sake of changing, but if you encounter certain problems, you should at least consider it
- unwillingness to really try more modern alternatives
- willingness to criticize any alternative, even stating plain wrong things about those. This also includes judging alternatives for the state they were 5/6 years ago, often on very brief experiences
- ability to deflect criticism to their favorite toy with a "skill issues" argument. Oh, it's very easy to squeeze performance, you only need to know how to get good at using useMemo, useCallback, useEffect, etc. Of course, it ain't React being the wrong tool for the problem, or having made design choices that don't fit the problem at hand. Nope, has to be skill issues.
Honestly, every time I read "React is better because X", I know there's just too much engineering nuance missing to have constructive discussions.
Re: React is winning by default and slowing innovation
#139React is winning because its really good. Even if the cost is an extra few milliseconds of render time and few extra hours of dev time figuring out things like hook dependencies. If React starts taking a backseat, it'll be because its no longer really good. And, to be fair: I've started to see this happen. Next & Vercel have totally taken over the React world, and they've proven to make quite poor architectural decis…
Re: React is winning by default and slowing innovation
#140React is winning because its really good. Even if the cost is an extra few milliseconds of render time and few extra hours of dev time figuring out things like hook dependencies. If React starts taking a backseat, it'll be because its no longer really good. And, to be fair: I've started to see this happen. Next & Vercel have totally taken over the React world, and they've proven to make quite poor architectural decis…