惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The Hacker News
The Hacker News
Google Online Security Blog
Google Online Security Blog
K
Kaspersky official blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
S
Schneier on Security
C
Cybersecurity and Infrastructure Security Agency CISA
Security Archives - TechRepublic
Security Archives - TechRepublic
Hacker News - Newest:
Hacker News - Newest: "LLM"
Cisco Talos Blog
Cisco Talos Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Cyberwarzone
Cyberwarzone
L
LINUX DO - 最新话题
PCI Perspectives
PCI Perspectives
酷 壳 – CoolShell
酷 壳 – CoolShell
云风的 BLOG
云风的 BLOG
N
News and Events Feed by Topic
N
News and Events Feed by Topic
V
Vulnerabilities – Threatpost
T
Troy Hunt's Blog
GbyAI
GbyAI
C
CERT Recently Published Vulnerability Notes
G
Google Developers Blog
Microsoft Azure Blog
Microsoft Azure Blog
量子位
Scott Helme
Scott Helme
月光博客
月光博客
Attack and Defense Labs
Attack and Defense Labs
aimingoo的专栏
aimingoo的专栏
博客园 - 聂微东
Project Zero
Project Zero
G
GRAHAM CLULEY
博客园 - 【当耐特】
Recorded Future
Recorded Future
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
小众软件
小众软件
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
O
OpenAI News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
V2EX
Stack Overflow Blog
Stack Overflow Blog
爱范儿
爱范儿
S
Security @ Cisco Blogs
The Last Watchdog
The Last Watchdog
MongoDB | Blog
MongoDB | Blog
H
Hacker News: Front Page
Latest news
Latest news
P
Proofpoint News Feed

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Can Vue Be a React Authoring Language?
Ryan John · 2026-05-19 · via DEV Community

Introduction

Have you ever been in this situation?

You love Vue's Composition API and the mental model of <script setup>, but the project has to use React because of team conventions, ecosystem fit, or existing infrastructure.

You can still write the code, of course. It just feels awkward. Every line feels like manual cross-framework translation.

That mismatch creates real friction. Vue developers moving into React often get trapped in repetitive Hook rules: filling dependency arrays, deciding when to use memoization, and debugging rendering behavior when one small detail is missed. VuReact exists to remove that kind of low-level work. Its compiler builds on Vue-native reactivity, tracks dependencies automatically, and translates Vue semantics into idiomatic React implementations.

If all you want is to write standard React apps with the Vue syntax you already think in, that is not too much to ask.

This article makes the case clearly: yes, it is absolutely possible. More importantly, the final output is still native React code that follows best practices and remains maintainable over time.

You do not need to learn a brand-new authoring model, and you do not need to constantly switch between Vue thinking and React thinking. If you want to compare source code with compiled output directly, the official site already provides side-by-side examples in the semantic conversion guide.

The real value of VuReact is not mechanical source replacement. It is about mapping Vue semantics into clean, maintainable, native React code that fits naturally into the React ecosystem.

Why Existing Approaches Fall Short

Let us start with reality.

Manual migration is obviously the most controllable option, but the cost is high: duplicated implementation effort, broader testing scope, and a longer period where old and new code need to coexist.

Simple syntax replacement tools are not much better. They can convert surface-level constructs, but they do not actually understand behavior. A tool might recognize v-if, but still miss the caching semantics behind computed. It might mechanically rewrite v-model, while completely failing to preserve the data flow of a scoped slot.

The result is familiar: code that looks a bit like React, but behaves inconsistently and becomes risky to maintain.

A lot of developers then reach for the obvious question:

Why not just let AI rewrite everything?

It sounds efficient, but that path hides a different kind of risk.

AI is great at generating new code from scratch. It is much less reliable when it needs to inherit the hidden logic and historical context of an existing codebase. It cannot infer undocumented business constraints. It does not know why a particular watch exists. And it certainly cannot guarantee a near-perfect semantic landing of Vue's reactive model inside React across a large project.

One-off generation may look usable. Long-term evolution is where the problem shows up. Once future requirements arrive, black-box AI output becomes harder to change safely and harder to reason about. On top of that, AI output is inherently unstable: the same prompt can produce very different structures over time. For enterprise teams that care about maintainability, that inconsistency becomes a real engineering cost.

Another common route is bridging Vue and React runtimes in the same app. It can work in the short term, but you pay for it with bundle size, debugging complexity, and heavier cognitive load. More importantly, that is not a full migration. It is long-term coexistence inside a wrapper.

So the real question has never been whether cross-framework conversion is possible.

The real question is whether it can be done reliably, predictably, and in a way that stays maintainable over time.

That is exactly the problem VuReact is trying to solve.

How VuReact Approaches the Problem

VuReact walkthrough

VuReact is based on semantic-aware compilation, not string-level replacement.

That distinction matters.

A string-based tool only cares whether the syntax looks similar enough to transform. A semantic compiler first understands what your code is trying to express, then decides how that meaning should be implemented in React.

From a pipeline perspective, VuReact is a full compiler: parsing, semantic analysis, transformation, and code generation. You write Vue templates, <script setup>, Composition API logic, and TypeScript types. The compiler produces React code that is readable, rule-compliant, and suitable for real engineering work.

The value of that approach comes down to five things:

  1. Semantic awareness: it understands template, script, type, and style layers instead of doing blind replacement.
  2. Incremental migration: you can start with a single module and expand step by step.
  3. Convention-driven compilation: by following the VuReact specification, the output becomes predictable, analyzable, and CI-friendly.
  4. Full feature mapping: core Vue features are mapped to React implementation paths, including style capabilities such as scoped and module-based CSS handling.
  5. Smart dependency collection: reactive dependencies are tracked and analyzed automatically to generate precise React Hook dependency arrays.

Most importantly, the final output is pure React. It does not depend on the Vue runtime, and it is not a Vue container embedded inside React. That makes it a much better fit for long-term maintenance than short-term demos.

Four Short Examples That Show the Real Value

The Vue and React snippets below focus on core logic only. Boilerplate component wrappers and unrelated config are omitted on purpose.

The point is not whether the output merely looks like React.

The point is whether the original Vue semantics are preserved and translated into standard React patterns.

1. Default Slots Become props.children

  • Vue
<!-- Child.vue -->
<template>
  <section class="card">
    <slot></slot>
  </section>
</template>

<!-- parent usage -->
<Child>
  <p>Order overview</p>
</Child>

Enter fullscreen mode Exit fullscreen mode

  • Compiled React
// Child.tsx
type IChildProps = {
  children?: React.ReactNode;
};

function Child(props: IChildProps) {
  return <section className="card">{props.children}</section>;
}

export default memo(Child);

// parent usage
<Child>
  <p>Order overview</p>
</Child>;

Enter fullscreen mode Exit fullscreen mode

This is the simplest example, but it shows the key idea clearly: the Vue default slot is not guessed at or approximated. It is compiled directly into React's native children mechanism.

2. Scoped Slots Become Function Children

  • Vue
<!-- List.vue -->
<template>
  <ul>
    <li v-for="(item, i) in props.items" :key="item.id">
      <slot :item="item" :index="i"></slot>
    </li>
  </ul>
</template>

<!-- parent usage -->
<List :items="users">
  <template v-slot="slotProps">
    <div>{{ slotProps.index + 1 }}. {{ slotProps.item.name }}</div>
  </template>
</List>

Enter fullscreen mode Exit fullscreen mode

  • Compiled React
// List.tsx
type IListProps = {
  items: any[];
  children?: (slotProps: { item: any; index: number }) => React.ReactNode;
};

function List(props: IListProps) {
  return (
    <ul>
      {props.items.map((item, index) => (
        <li key={item.id}>{props.children?.({ item, index })}</li>
      ))}
    </ul>
  );
}

export default memo(List);

// parent usage
<List
  items={users}
  children={(slotProps) => (
    <div>
      {slotProps.index + 1}. {slotProps.item.name}
    </div>
  )}
/>;

Enter fullscreen mode Exit fullscreen mode

This is where VuReact becomes especially compelling. A scoped slot is really a data-flow contract from child to parent. VuReact preserves that idea by compiling it into a parameterized children function instead of flattening it into something less expressive.

3. computed() and defineEmits() Keep Their Meaning

  • Vue
<script setup lang="ts">
const emit = defineEmits<{
  (e: 'update:name', value: string): void;
}>();

const state = reactive({ count: 1, price: 99 });
const totalPrice = computed(() => state.count * state.price);

const submit = () => {
  emit('update:name', 'next');
};
</script>

Enter fullscreen mode Exit fullscreen mode

  • Compiled React
import { useCallback } from 'react';
import { useReactive, useComputed } from '@vureact/runtime-core';

const state = useReactive({ count: 1, price: 99 });
const totalPrice = useComputed(() => state.count * state.price);

type ICompProps = {
  onUpdateName?: (value: string) => void;
};

const submit = useCallback(() => {
  props.onUpdateName?.('next');
}, [props.onUpdateName]);

Enter fullscreen mode Exit fullscreen mode

There are two important transformations in this small block.

computed() becomes useComputed(), preserving dependency tracking and caching semantics. defineEmits() turns the Vue-style update:name event into an idiomatic React callback such as onUpdateName.

One solves reactive state semantics. The other solves component communication semantics.

4. <style scoped> Becomes Scoped CSS in React

  • Vue
<template>
  <div class="card">
    <p class="content">Content</p>
  </div>
</template>

<style scoped>
.card {
  border: 1px solid #e5e5e5;
}

.content {
  font-size: 12px;
}
</style>

Enter fullscreen mode Exit fullscreen mode

  • Compiled React
import './card-abc1234.css';

<div className="card" data-css-abc1234>
  <p className="content" data-css-abc1234>
    Content
  </p>
</div>;

Enter fullscreen mode Exit fullscreen mode

/* card-abc1234.css */
.card[data-css-abc1234] {
  border: 1px solid #e5e5e5;
}

.content[data-css-abc1234] {
  font-size: 12px;
}

Enter fullscreen mode Exit fullscreen mode

Many migration tools start to fall apart once styles enter the conversation. VuReact does not stop at script and template translation. It compiles <style scoped> into scoped CSS output and injects the matching data-css-{hash} marker into the rendered nodes.

That means the style isolation you depended on in Vue still exists after the move to React.

Why This Matters in the AI Era

People often ask a fair question: if AI is already this powerful, why do we still need a compiler?

My answer is simple.

AI is great at exploring alternative implementations. A compiler is great at guaranteeing semantic correctness. They should not replace each other. They should divide the work.

In migration projects, uncertainty is the real enemy. AI-only rewriting can be fast, but the output may shift with prompt phrasing or model behavior. Rule-based tools are stable, but too rigid. A semantic compiler like VuReact gives you a deterministic base layer first, and then AI can be used where it is strongest: refactoring, naming cleanup, structural simplification, and test generation.

That changes migration from a bad trade-off between "slow" and "risky" into something much more practical:

Use the compiler to stabilize the foundation, then use AI to amplify team productivity.

That is one of the most realistic engineering workflows I see in the AI agent era.

Real Projects, Not Just a Demo

VuReact has already been proven on two real admin-style projects.

One is a standard TypeScript + Vue + Vite + Vue Router application. The other is a mixed Vue/React collaboration project that includes Ant Design and Zustand. These are not toy demos. You can run them, inspect them, and evaluate the engineering details directly.

Online demos:

If you want to go deeper into migration strategy and execution, these two related articles are also worth reading:

  1. Vue to React Migration: A Real Component Walkthrough with VuReact

How to Get Started

The easiest way to evaluate VuReact is to start small.

First, install the compiler in an existing Vue 3 project or a throwaway demo project:

npm install -D @vureact/compiler-core

Enter fullscreen mode Exit fullscreen mode

Then walk through the quick start guide and build a concrete understanding of what converts cleanly and what depends on conventions.

After that, pick one small module with clear boundaries and run a pilot migration. Evaluate the readability of the compiled output, the cost of regression testing, and how comfortable the team feels maintaining the result.

The key is not raw speed. The key is that every step is reversible, verifiable, and reviewable.

That also makes VuReact easier to manage at the team level. If you are a tech lead, scope and progress become easier to measure. If you are an individual contributor, you can move faster because you still get to think and write in Vue's mental model.

GitHub repository:

Closing Thoughts

I have always believed the goal of cross-framework development is not to make developers memorize more syntax. The goal is to let them express ideas in a familiar way and still deliver cleanly into the target ecosystem.

That is what VuReact is really trying to do: write with Vue semantics, ship maintainable React.

If you want a practical next step, this is the order I would recommend:

  1. Review the official semantic conversion guide.
  2. Open the live demos and validate the real experience.
  3. Read the GitHub source and documentation in detail.

In the AI agent era, the strongest combination is not "AI alone." It is compiler-driven certainty plus AI-driven flexibility. Once those two work together, teams can move faster with much less migration risk.

Official site | GitHub | CRM playground | Customer Support Hub playground