React chaos in mid and large web apps: Any different experiences?
1–10 of 52 posts
Re: React chaos in mid and large web apps: Any different experiences?
#2Re: React chaos in mid and large web apps: Any different experiences?
#3[flagged]
One of the somewhat ironic things that I don’t know is well understood within the React community is that just purely by the nature of its particular architectural details, it’s only going to continue to become and worse and worse choice as time goes on.
What started as its main selling point (an abstraction over the messy parts of web standards at the time) has actually become one of its biggest liabilities.
It was fundamentally designed around solving problems that just haven’t been problems for some time now and much better options do indeed exist.
That’s to say absolutely nothing of how it has since been hijacked by a for profit VC backed company who are just making everything worse and more complicated with more lock in.
Now is a good time to start looking for the exits. I don’t think having it as the default for a new project in 2024 is a good idea either.
Re: React chaos in mid and large web apps: Any different experiences?
#4[flagged]
Re: React chaos in mid and large web apps: Any different experiences?
#5Re: React chaos in mid and large web apps: Any different experiences?
#6Re: React chaos in mid and large web apps: Any different experiences?
#7Even better is to get Tanstack Query for free with type-safe backend in T3 stack.
Hard to overstate how much the symptoms described in this thread can improve simply from this.
Re: React chaos in mid and large web apps: Any different experiences?
#8Re: React chaos in mid and large web apps: Any different experiences?
#9100%. I've found `useEffect` is an effective foot-shotgun, even I still blast away some toes with it. What makes it some weird to me from the start (React 16.8, ~2019) is how they folded several, clearly named, lifecycle methods into this one callback. The motivation for this change [1] informs me that maybe I've just never worked on Facebook-scale front-ends or I've just forgotten the pain of explicitly having to write all those methods, but I rather liked their separation.
[1]: https://legacy.reactjs.org/docs/hooks-intro.html#complex-com...
Re: React chaos in mid and large web apps: Any different experiences?
#10I find working with React and Mobx a breeze, also for complex apps. Not sure, why this has not been more widely adopted. It eliminates usually the need to use those mentioned unintuitive and error prone state handling mechanisms.
You can even use tanstack-query to get all/most of its benefits. (by using its core package instead of react-query)