React, Vue, Svelte or Angular? Choosing a Frontend Framework in the Age of Agentic Coding
React, Vue, Svelte or Angular? Choosing a Frontend Framework in the Age of Agentic Coding
Frontend framework debates often begin with syntax. One developer prefers JSX. Another prefers templates. Someone wants signals. Someone else wants the smallest bundle or the most batteries included.
Agentic coding tools weaken one of the oldest reasons for choosing a framework: familiarity with its syntax.
If an assistant can explain a component, generate an idiomatic implementation, repair type errors and translate patterns between ecosystems, developers can become productive in an unfamiliar framework more quickly. That does not make every framework equivalent. It changes which differences deserve the most weight.
The useful question is no longer simply, “Which framework can we write fastest?” It is, “Which system can this team understand, verify, operate and evolve?”
A todo app makes the comparison visible
Consider the same small feature in four ecosystems:
- a form adds a task;
- a checkbox toggles completion;
- buttons filter the list;
- a delete action removes a task;
- derived data shows the active count;
- local storage retains the list.
The core data model is identical:
type Todo = {
id: string;
title: string;
completed: boolean;
};
type Filter = "all" | "active" | "completed";
The frameworks differ mainly in how they connect this model to rendering and change.
React: explicit composition and an enormous ecosystem
React centres the component function and uses hooks to retain state, derive values and coordinate effects.
const [todos, setTodos] = useState<Todo[]>([]);
const [filter, setFilter] = useState<Filter>("all");
const visibleTodos = useMemo(
() => filterTodos(todos, filter),
[todos, filter]
);
useEffect(() => {
localStorage.setItem("todos", JSON.stringify(todos));
}, [todos]);
Strengths
- A broad ecosystem for routing, data, testing, design systems and specialist UI.
- Composition patterns work from tiny components to large product surfaces.
- A large talent pool and extensive training data for coding agents.
- Framework options such as Next.js provide established full-stack paths.
Trade-offs
- React itself leaves several architectural choices to the team.
- Effects are easy to misuse as a general synchronisation tool.
- The ecosystem offers many competing solutions to the same problem.
- Generated code can contain unnecessary memoisation, state and wrappers.
Choose React when
The team values ecosystem breadth, already has React expertise, depends on React-specific libraries or needs a flexible base shared across multiple product types.
Vue: progressive structure with approachable templates
Vue combines template directives with reactive primitives:
const todos = ref<Todo[]>([]);
const filter = ref<Filter>("all");
const visibleTodos = computed(() =>
filterTodos(todos.value, filter.value)
);
watch(
todos,
value => localStorage.setItem("todos", JSON.stringify(value)),
{ deep: true }
);
Strengths
- Single-file components keep template, behaviour and styles together.
- Templates are familiar to developers with strong HTML backgrounds.
- The Composition API supports reusable, explicit logic.
- Vue provides an official ecosystem for routing and state management.
Trade-offs
- Refs, reactive objects and automatic template unwrapping require a clear mental model.
- Teams can mix Options API and Composition API styles unless conventions are explicit.
- The ecosystem is smaller than React’s in some specialist areas.
Choose Vue when
The team wants a progressive framework with strong defaults, values template readability or needs to introduce modern reactivity without making every decision from scratch.
Svelte: direct reactivity and a compiler-led model
Svelte moves more work into compilation and keeps component state compact:
let todos = $state<Todo[]>([]);
let filter = $state<Filter>("all");
let visibleTodos = $derived(filterTodos(todos, filter));
$effect(() => {
localStorage.setItem("todos", JSON.stringify(todos));
});
Strengths
- Components can be concise and close to HTML, CSS and JavaScript.
- Derived state and reactive updates are expressive.
- The compiler can reduce runtime work and enable useful diagnostics.
- SvelteKit offers a cohesive application framework.
Trade-offs
- The ecosystem and hiring pool are smaller than React’s.
- Major reactivity changes require teams and agents to distinguish current patterns from older examples.
- Some enterprise-specific integrations may require more evaluation.
Choose Svelte when
The team values concise components, compiler-assisted reactivity and a cohesive modern stack, and is comfortable with a smaller ecosystem.
Angular: an application platform with strong conventions
Angular’s signal model can express the same todo state while the framework supplies broader application structure:
readonly todos = signal<Todo[]>([]);
readonly filter = signal<Filter>("all");
readonly visibleTodos = computed(() =>
filterTodos(this.todos(), this.filter())
);
constructor() {
effect(() => {
localStorage.setItem(
"todos",
JSON.stringify(this.todos())
);
});
}
Strengths
- Routing, forms, dependency injection, HTTP and testing have established approaches.
- Strong conventions can reduce architectural drift across large teams.
- TypeScript is fundamental rather than optional.
- Signals provide a clear modern reactivity model.
Trade-offs
- The platform carries more concepts and ceremony.
- A small application may not benefit from the full structure.
- Framework-specific conventions increase the cost of partial adoption.
Choose Angular when
The organisation benefits from consistency, long-lived applications, strong conventions and an integrated platform more than it benefits from minimal setup.
What AI makes cheaper
Syntax acquisition
An agent can explain useEffect, Vue watchers, Svelte effects or Angular signals at the point of use. Developers no longer need to memorise an entire API before producing a small feature.
Mechanical translation
Given a well-separated domain layer, an agent can port the UI adapter between frameworks:
Port this React component to Vue 3 using script setup and TypeScript.
Preserve:
- the Todo and Filter types;
- the pure domain functions;
- accessible names and keyboard behaviour;
- acceptance tests and failure handling.
Do not introduce a state library.
Explain any behaviour that cannot map directly.
Boilerplate
Routes, test harnesses, typed inputs, repetitive templates and basic component files are inexpensive to generate.
Repository discovery
A capable agent can inspect the current stack, find analogous features and align a change with local conventions.
Migration experiments
Teams can create representative spikes rather than debating from documentation alone. A framework decision can be tested against a real component, build pipeline and deployment environment.
What AI does not make cheap
Long-term coherence
An agent optimises within the context it sees. A repository accumulated through hundreds of locally reasonable generations can still become globally inconsistent. Teams need conventions and architectural boundaries.
Dependency risk
Generated code can install a library in seconds. The organisation still owns its security, licensing, upgrades, bundle cost and operational behaviour.
Production debugging
When rendering, hydration, caching or state fails under real traffic, someone must understand the runtime well enough to form and test hypotheses.
Upgrade ownership
An agent can perform a migration. It cannot remove the organisational cost of planning, testing, deploying and supporting it.
Accountability
“The agent chose it” is not an engineering rationale. The team owns the decision and the software.
A better framework evaluation
Do not compare frameworks using only a toy benchmark. Build a representative slice containing:
- a form with validation;
- remote data and an error state;
- authenticated routing;
- a reusable component from the design system;
- analytics or observability;
- server rendering if required;
- unit, integration and browser tests;
- a production build and deployment.
Then score the options:
| Area | Question |
|---|---|
| Clarity | Can a developer explain state and data flow without the agent? |
| Repository fit | Does it align with the current platform and team? |
| Accessibility | Can correct semantic patterns be implemented and tested easily? |
| Testing | Are behavioural tests simple and reliable? |
| Operations | Can the application be observed, debugged and deployed confidently? |
| Ecosystem | Do required integrations have mature support? |
| Upgrades | What is the likely maintenance and migration burden? |
| Agent reliability | Does generated code use current, idiomatic patterns? |
| Human capability | Can the team maintain it when the tool is unavailable? |
Use AI to challenge the decision
After a preferred framework emerges, ask an agent to argue against it:
We are considering this framework for a five-year product.
Given our requirements and repository:
- identify the strongest reasons not to choose it;
- list ecosystem gaps and operational risks;
- describe the likely upgrade burden;
- identify assumptions that need a proof of concept;
- compare the cost of choosing it with staying on our current stack.
Separate evidence from inference. Do not recommend a decision yet.
Then ask it to design the proof:
Create a two-day technical spike that tests the highest-risk assumptions.
It must produce measurable evidence for:
- server rendering;
- authentication;
- accessibility;
- testing;
- observability;
- deployment;
- bundle and runtime performance.
Keep the spike disposable. Define pass/fail criteria before implementation.
This is a better use of AI than asking, “What is the best frontend framework?”
Beware the agent familiarity trap
Models have not seen every framework, version and pattern equally. They may generate excellent React code and outdated examples for a newer ecosystem. They may mix APIs from different major versions or invent configuration that looks correct.
For each candidate:
- pin the exact framework version in the prompt;
- require the agent to inspect installed packages;
- prefer official documentation and repository examples;
- run type checking and production builds;
- ask the agent to identify deprecated APIs;
- review unusual framework-specific code with a human specialist.
Agent productivity is part of developer experience, but it should not disguise weak underlying support.
Framework choice is increasingly organisational
Once syntax becomes cheaper, other factors rise:
- How quickly can a new developer understand the system?
- How consistently can multiple teams make changes?
- How much architecture must be invented locally?
- How easy is it to review generated changes?
- How confidently can incidents be diagnosed?
- How much of the stack is controlled by one vendor?
- What will an upgrade look like in three years?
A framework can be delightful for an individual and still be a poor organisational choice. The reverse is also true: a framework with more ceremony may create valuable consistency at scale.
A practical decision rule
For a small independent project:
Choose the option that keeps you shipping while leaving code you can still explain.
For an existing product:
Prefer continuity unless another option solves a measured problem strongly enough to pay for migration and long-term ownership.
For a new team platform:
Choose the operating model, not the demo. Evaluate conventions, ecosystem, debugging, testing, deployment and upgrades.
The framework matters less—and more
Agentic coding makes frameworks easier to enter. It lowers the tax of unfamiliar syntax and lets developers test alternatives with real code. That makes preference a more legitimate input than it once was.
At the same time, cheaper code generation increases the amount of code a team can create and therefore the importance of consistency, architecture and review. Framework conventions can become more valuable because they constrain both humans and agents.
React, Vue, Svelte and Angular can all build the todo app. They can all build serious products. None removes the need to understand state, effects, the browser, accessibility, performance or operations.
AI can help write the framework code.
The team still has to choose the system it is willing to own.
Comments
Post a Comment