vue-jsx-best-practices

Identify Vue JSX best practices for avoiding React-specific attributes and configuring plugins.

Updated Mar 31, 2026
One-click install
npx skills add https://github.com/aiaihome/SinotransAI --skill vue-jsx-best-practices-aiaihome
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vue-jsx-best-practices
Source: https://github.com/aiaihome/SinotransAI/tree/main/.agents/skills/vue-jsx-best-practices
Command: npx skills add https://github.com/aiaihome/SinotransAI --skill vue-jsx-best-practices-aiaihome

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Vue JSX often confuses developers coming from React, especially around HTML-like attribute names and TypeScript typings. This skill clarifies why Vue JSX uses standard HTML attributes (class, for, onInput) and how to configure tooling to avoid common errors.

Core Features & Use Cases

  • Use standard HTML attributes in Vue JSX to align with Vue templates and improve type-safety.
  • Explain differences between Vue JSX and React JSX and how to migrate components without breaking TS types.
  • Provide practical examples for common UI components and events in Vue with JSX.

Quick Start

Create a Vue component using standard HTML attributes in JSX and verify TypeScript typings are correct.

Frequently Asked Questions about vue-jsx-best-practices

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

FAQPage Schema
Why does Vue JSX use standard HTML attributes like class and for instead of React's className and htmlFor?

Vue JSX uses standard HTML attributes like class and for to align directly with Vue templates and ensure predictable behavior. This approach improves type-safety and helps developers avoid common errors caused by React-specific attribute naming conventions.

How do I write Vue components using JSX and render functions with TypeScript?

To write Vue components using JSX with TypeScript, apply best practices for standard HTML attributes and event handling like onInput. Ensure correct plugin configuration to enable safe, predictable JSX usage and verify that TypeScript typings remain correct.

What's the best way to migrate React JSX components to Vue without breaking TS types?

The best way to migrate React JSX to Vue is to replace React-specific attributes with standard HTML attributes. This skill explains the differences between Vue and React JSX, helping you migrate components while maintaining correct TypeScript typings.

How do I handle event binding in Vue JSX render functions?

Handle event binding in Vue JSX render functions by using standard HTML event attributes such as onInput. Following these best practices ensures your event handling aligns with Vue templates and maintains type-safety in your frontend setup.

Do I need a specific plugin configuration to enable JSX in Vue projects?

Yes, you need correct plugin configuration to enable safe and predictable JSX in Vue projects. Proper tooling setup prevents common errors and ensures that TypeScript typings work correctly when using render functions in your frontend components.