You ask an AI to generate a CRUD using Laravel with Livewire.
What you get? Weird syntax, broken wire:model
, violated conventions.
Now you try the same thing... but with React and Next.js.
Boom: clean code, solid JSX, working auth flow.
It's not just coincidence.
There’s bias in the data that trains these AIs, and it shapes more than just syntax.
AI Isn’t Neutral, It Just Repeats What It Saw
AI promises productivity, impartiality, intelligence.
But what it generates is based on what it consumed.
And what dominates the training data?
- Public GitHub repos (mostly JavaScript-heavy)
- Stack Overflow threads packed with React
- Mass tutorials and boilerplate templates
- Popular documentation and frameworks
It doesn't create, it recombines.
And it’s better at recombining what it saw the most.
React & Next.js: Fluent in the AI’s Native Language
Stacks like React and Next.js are basically first-class citizens in AI models.
Not because they’re better, but because they’re everywhere.
Why is React favored?
- Massive GitHub repos
- Huge, loud global community
- Predictable functional patterns
- Endless repetition across tutorials
AI knows useState
, useEffect
, AuthProvider
, getServerSideProps
like the back of its digital hand.
Laravel + Livewire: Where AI Starts to Fumble
Now compare that to Laravel + Livewire + Filament.
AI often:
- Breaks
wire:model
or misuses bindings - Ignores Livewire lifecycle methods
- Mixes up reactivity with Alpine.js
- Writes generic solutions that break the opinionated flow of the framework
Why?
- Fewer public examples in English
- Laravel has regional popularity (strong in Brazil, weak globally)
- Livewire has “magic” abstractions that confuse generative models
- Less noise in forums, fewer mentions in tutorials
Bias Is Structural
AI doesn’t prefer React because it’s “better.”
It just knows React better, because it had more of it in training.
And that creates systemic effects:
- Popular stacks become even more dominant
- Alternative stacks are treated like fringe cases
- Junior devs assume React is the "correct" or only modern choice
It's the algorithm reinforcing the mainstream, and quietly shaping the tech landscape.
How to Break the Cycle
AI isn't the enemy. But it demands mindful use.
Here’s how you can stay in control:
🧠 Practical Tips:
- Master your stack. Know when the AI is wrong.
- Add context to your prompts. Tell it you’re using Livewire or Filament.
- Correct its mistakes. Every fix helps both you and the AI learn.
- Use custom GPTs. Fine-tune with your own standards and stack.
- Treat AI as a partner, not a prophet.
Final Thoughts
AI doesn’t know which stack is “better.”
It just knows which one got the most GitHub stars in 2022.
If you’re not paying attention, you’ll end up coding like the algorithm wants —
not like your project actually needs.
What About You?
Ever caught your AI suggesting React when you asked for Vue?
Or generating Laravel code that breaks its own conventions?
Let’s talk about it, drop your experience below 👇