VOOZH about

URL: https://thenewstack.io/why-ai-is-generating-lowest-common-denominator-react-code/

⇱ Why AI Is Generating ‘Lowest Common Denominator’ React Code - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2025-10-22 12:00:33
Why AI Is Generating ‘Lowest Common Denominator’ React Code
AI / Frontend Development / JavaScript

Why AI Is Generating ‘Lowest Common Denominator’ React Code

We’re not in a post-React world, we're in a post-frontend-framework world, argues Seth Webster, executive director of the React Foundation.
Oct 22nd, 2025 12:00pm by Loraine Lawson
👁 Featued image for: Why AI Is Generating ‘Lowest Common Denominator’ React Code
Photo by Lautaro Andreani via Unsplash

Seth Webster doesn’t think we’re in a post-React world — or at least, not only a post-React world.

“We’re actually in a post-frontend-framework world, because the AI spits out React and nobody cares what it’s spitting out,” said the executive director of the newly created React Foundation. “We’re heading for a post-code-the-plumbing world, and we get to focus more on ,‘What [are] the delightful parts I want to create?’”

The problem is, large language models aren’t trained on the best React code, he continued; in fact, LLMs mostly have been trained on really bad React.

“They’re trained on the lowest common denominator React, which is what’s out in the world. They’re trained on the worst Svelte, they’re trained on the worst Swift, because what they’re training on is publicly available code,” he told The New Stack. “The best code in the world, oftentimes, is hidden behind private repo, and so they didn’t get to scrape that.”

Why AI Is a Middling Engineer

LLMs haven’t had access to the best code or how tools are built, he added. As a result, AI is more like a middle-of-the-road, mid-career engineer. It’s not the best engineer you’ve ever met, he said, but it’s also not the worst.

For instance, one of the things Claude likes to do is to use refs in React to track state.

“It’s not like the worst pattern we see in React, but it’s not a good pattern,” Webster said. “It’s basically indicative of the model doesn’t understand that the best way to build these things is to create an external service and integrate that using hooks with React, instead of trying to cram all the business logic into React, which is what everybody in the world does because we made it so easy to do that.”

It’s one of the mistakes the React maintainers made in React’s architecture, he added, because it’s “just too simple to put everything in React” — when developers really need to think like engineers and build the business logic a bit differently.

“If I’m doing authentication with Google or GitHub or whatever, I should have separate services that handle that,” Webster said. “I should have an authorization service, and it integrates with my different providers for different things. It handles telling the React app when someone has been logged in and so forth, when their authentication token expires, or just whatever.

“That should be integrated via hooks. You shouldn’t be putting that in your components, and the code the models have read is all crammed in the business logic, since it does not default to creating services.”

A Goal to Improve LLMs’ React Output

One of the goals he hopes to accomplish as the head of the React Foundation is to improve the React code that popular large language models generate.

That will mean a combination of Model Context Protocol (MCP) servers and evaluations, he said. Evals are used to systematically assess an LLM’s accuracy and reliability against predefined metrics and business objectives, according to the global consultancy Thoughtworks, a global consultancy.  Evals, he said, help AI deliver on its “intended purpose.”

Until then, Webster said, AI needs help from developers to get the code right: “It requires a lot of guidance, and it will for a while to come.”

TRENDING STORIES
Loraine Lawson is a veteran technology reporter who has covered technology issues from data integration to security for 25 years. Before joining The New Stack, she served as the editor of the banking technology site Bank Automation News. She has...
Read more from Loraine Lawson
SHARE THIS STORY
TRENDING STORIES
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.