I’ve been building React/Next.js applications for years, and something has been bothering me lately.
A lot of frontend projects are becoming *more* complicated while the actual product is getting simpler.
You’ll see:
\- 10+ state-management patterns
\- multiple data-fetching abstractions
\- enormous component libraries
\- custom hooks wrapping custom hooks
\- “generic” components that nobody wants to touch
\- dozens of folders trying to enforce an architecture
\- AI-generated code adding even more layers
And then a developer gets asked to change a button, modify a form, or add one API field… and suddenly they need to understand half the application.
The irony is that AI coding tools are making this easier to create.
You can ask an AI:
“Build a scalable architecture for this feature.”
And it will happily give you 15 abstractions.
The code looks sophisticated.
The architecture diagram looks impressive.
But six months later, someone has to maintain it.
I’m starting to think the better question isn't:
**“How do we make our frontend architecture more scalable?”**
It’s:
**“How little architecture can we get away with while keeping the product maintainable?”**
For example, I’d rather have:
Feature
├── UI
├── API/data
├── state
└── tests
than create a massive abstraction layer just because we *might* need it someday.
And I’m increasingly applying the same thinking to AI-generated code:
**If I wouldn't ask a human developer to write this abstraction prematurely, I shouldn't ask an AI to write it either.**
Curious what other experienced developers are seeing.
**Has AI made your codebase simpler because you can automate the boring parts — or more complicated because it makes overengineering ridiculously easy?**
I'd particularly like to hear from people maintaining React/Next.js codebases that are 2–5+ years old.