r/reactjs • u/Big_Muffin8280 • Oct 28 '26
Discussion Senior devs: what’s the biggest React decision you made that you’d reverse today?
I have been thinking about this a lot lately. Most React content is about how to do things, but the decisions that really shape a project are the big early ones: architecture, state management, framework choice, rendering strategy.
And with React 19.x, the React Compiler, and Server Components all in the picture, a lot of us are now living with choices we made years ago.
So I’m curious about the experienced people here:
- What was the biggest React/architecture decision you made that you would reverse if you could?
- What did it cost you (time, performance, team confusion, rewrites)?
- What did you learn, and what would you pick today instead?
16
Upvotes
12
u/bogdanelcs Oct 28 '26
Putting server data into a global store like Redux, hand-writing the loading, caching and refetch logic that TanStack Query or SWR handles for you.
It tends to cost a lot in boilerplate and stale-data bugs, and it’s painful to unwind because every screen depends on it. The usual fix is server state in a query library, a small amount of client state (often just Context or Zustand), and no global store until you can name why you need one.
15
u/gempir Oct 28 '26
Decided we didn't need Typescript for like ~4 years. That prop types are enough in React.
They are not. Thankfully we are on the good path now and only have a dozen or so JS files left which are now easy to migrate with LLMs.
5
u/about0 Oct 28 '26
I had to build a complex filter toolbar, that has a lot of internal and hidden logic - options refetch on other fitlers change, on search within filter, etc. And I coupled everything in a set of useEffects, that weren't separated enough.
useEffect is not a great pattern for complex features, if I can say this? When a component has a lot of moving parts, it is very hard not to trigger other effects on some side-effect change. I find an emitter pattern much better - you can trigger certain effect by emitting an even on Clear button click, or Add/remove filter, etc.
8
u/intercaetera Oct 28 '26
Next.js / SSR, completely useless and adds a ton of compilation time and complexity for zero gain.
2
u/lIIllIIlllIIllIIl Oct 28 '26 edited Oct 28 '26
Not using React Router's Data Mode soon enough. Even if you don't use the server-render stuff, it's a real game changer in how you structure your app's routing and data loading.
Suspense data fetching is great. All my non-Suspense code will forever feel bad to me.
Micro-frontends. That's a piece of shit architecture that tries to solve a tooling problem by creating a runtime integration mess. I should've been more vocal about my opposition to the front-end architect I worked with. This is more of a professional regret.
Monorepos are cool, but the tooling isn't there yet. A single project is way easier to maintain. Sorry for the maintenance burden I created.
Not knowing about how to properly use useEffect, useRef and useSyncExternalStore soon enough.
I got lucky and avoided the Redux and Next.js hype trains. I have not tried RSC, so someone else can tell me if I should regret them or not.
1
u/Produnce Oct 30 '26
Starting my career with React. Wish I did some significant development with a little less abstraction so I know what goes behind the scenes instead of just calling onClick().
33
u/[deleted] Oct 28 '26
[removed] — view removed comment