vue-jsx-best-practices

Configure Vue 3 JSX attributes and plugin settings for React migrations.

Updated Dec 1, 2025
One-click install
npx skills add https://github.com/stevessr/dotsfiles --skill vue-jsx-best-practices-stevessr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vue-jsx-best-practices
Source: https://github.com/stevessr/dotsfiles/tree/main/dot_agents/skills/vue-jsx-best-practices
Command: npx skills add https://github.com/stevessr/dotsfiles --skill vue-jsx-best-practices-stevessr

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Vue JSX developers face differences from React JSX, particularly attribute naming (class vs className, for) and plugin/configuration setup, which can cause type errors and inconsistent code across a codebase.

Core Features & Use Cases

  • Guidance on adopting Vue-style JSX attributes and configuring the Vue JSX plugin for Vue 3.
  • Migration support for converting React JSX components to Vue JSX in existing projects.

Quick Start

Follow the guide to migrate from React JSX to Vue JSX by using Vue-compatible attributes and enabling the Vue JSX plugin.

Frequently Asked Questions about vue-jsx-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure the Vue JSX plugin in a Vue 3 TypeScript project?

To configure Vue JSX in a Vue 3 TypeScript project, enable the Vue JSX plugin and update your TS configuration guidelines to support the Vue JSX runtime, preventing type errors.

What is the best way to migrate React JSX components to Vue JSX?

The best way to migrate React JSX to Vue JSX is converting React attributes like className to Vue-compatible attributes such as class, ensuring consistent UI code across your Vue 3 project.

Why does my Vue JSX code throw type errors with className attributes?

Vue JSX code throws type errors with className attributes because Vue conventions require using class instead of className; adopting correct Vue JSX attributes prevents these type errors.

Can I use standard React JSX attributes directly in Vue 3 TSX files?

You cannot use standard React JSX attributes directly in Vue 3 TSX files without causing type errors; you must bridge the gap by using Vue-specific JSX attributes like class and for.

When do I need to enable the Vue JSX runtime in my web development project?

You need to enable the Vue JSX runtime in your web development project when adopting Vue JSX with TypeScript, ensuring proper plugin setups and TS configuration guidelines are active.

What are the limitations of using Vue JSX attributes during a migration?

A key limitation of using Vue JSX attributes during migration is the risk of inconsistent UI code if React JSX practices are not fully bridged to Vue conventions, causing type errors.