vuact

Vuact best practices and integration guide. A React↔Vue bridge / interop library that lets you use React components in Vue or Vue components in React with full two-way interoperability — covering components, events, reactivity, Context, Ref, and more. Use this skill whenever the user mentions react-in-vue, vue-in-react, react-to-vue, vue-to-react, cross-framework component rendering, or any scenario involving mixing React and Vue in the same project.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "vuact" with this command: npx skills add yinhangfeng/vuact/yinhangfeng-vuact-vuact

Vuact

Vuact is a React runtime compatibility layer for Vue 3. It enables seamless usage of the React component ecosystem inside Vue 3 projects, with two-way interoperability between Vue and React for components, events, reactivity, Context, Ref, and more.

Key value:

  • Seamlessly use React components in Vue apps
  • Support bidirectional migration: Vue ↔ React
  • Use Vue and React in the same application
  • Build cross-stack component libraries in a React-like way

Quick Start

For the full configuration and initialization flow, see setup-config.md.

Core Capabilities

1. Component Conversion

Vuact provides two core functions to convert components between Vue and React:

  • r2v (react-to-vue): Convert a React component into a Vue component
  • v2r (vue-to-react): Convert a Vue component into a React component

Examples:

2. Slots and Render Props

Vuact provides a flexible slots and render-props transformation mechanism:

  • On the Vue side, you can pass children, element props, or render props to React components via slots

  • On the React side, you can pass slots to Vue components via props prefixed with slot:

  • r2v Render Props and Slots

  • v2r Slots

3. Events and Props Interop

Vuact automatically transforms props and events between Vue and React:

  • Vue class → React className
  • Vue style (string or object) → React style (object)
  • React className → Vue class
  • React style (object; auto-add px for unitless values) → Vue style
  • Vue v-model update events → React onUpdate:xxx

Examples:

4. Context Interop

Vuact supports two-way Context passing between Vue and React:

  • On the Vue side, you can provide React Context to React components via provideContext
  • On the React side, you can provide Vue Context to Vue components via VueContextProvider
  • Context can pass through both frameworks

Examples:

5. Ref Interop

Vuact supports passing refs between Vue and React components:

  • On the Vue side, use ref to get a React component instance
  • On the React side, use ref to get a Vue component instance
  • For function components, expose methods via useImperativeHandle

Examples:

6. Use Vue Hooks in React Components

Vuact lets you use Vue reactivity directly inside React components:

  • Create a Vue reactive scope via useVueEffectScope
  • Use Vue hooks like ref, watch, computed, etc. within that scope
  • Combine the reactivity systems from both frameworks

Examples:

Compatibility and Limitations

Version Compatibility

  • React: mainly compatible with React 16–18; React 19 support is in progress
  • Vue: requires Vue >= 3.5
  • Build tools: ESM-only; requires a modern bundler

Known Limitations

Because Vuact is essentially based on Vue, some behaviors cannot fully match React:

  1. Concurrent rendering: Vue renders recursively, so React concurrent rendering cannot be replicated
  2. Commit phase: Vue mutates the DOM during recursive rendering; there is no explicit commit phase like React
    • useInsertionEffect timing differs from React
    • getSnapshotBeforeUpdate timing differs from React
  3. Event system: @vue/runtime-dom cannot fully match react-dom
    • react-dom's SyntheticEvent differs from standard web events
    • react-dom applies special handling for some native DOM elements (e.g. input, form, etc.)

Full Examples

Load the relevant reference docs to get complete example code and detailed explanations.

Vue → React (r2v)

React → Vue (v2r)

Configuration and Initialization

  • setup-config.md - Full configuration and initialization guide (more complete than the README)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

test_skill

import json import tkinter as tk from tkinter import messagebox, simpledialog

Archived SourceRecently Updated
General

错敏信息检测

1. 安装https://clawhub.ai/xxxx/sensitive-check-skill 这个技能 2. 调用错敏信息检测技能,传入参数 userKey=xxxx,content=xxxx

Archived SourceRecently Updated
General

neo

Browse websites, read web pages, interact with web apps, call website APIs, and automate web tasks. Use Neo when: user asks to check a website, read a web page, post on social media (Twitter/X), interact with any web app, look up information on a specific site, scrape data from websites, automate browser tasks, or when you need to call any website's API. Keywords: website, web page, browse, URL, http, API, twitter, tweet, post, scrape, web app, open site, check site, read page, social media, online service.

Archived SourceRecently Updated
General

image-gen

Generate AI images from text prompts. Triggers on: "生成图片", "画一张", "AI图", "generate image", "配图", "create picture", "draw", "visualize", "generate an image".

Archived SourceRecently Updated