vue-jsx-best-practices

Standardizes Vue 3 JSX attributes to HTML-compliant naming conventions.

4|Updated Jun 10, 2026
One-click install
npx skills add https://github.com/mymx2/foreman --skill vue-jsx-best-practices-mymx2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vue-jsx-best-practices
Source: https://github.com/mymx2/foreman/tree/main/.qoder/skills.collected/skills/vue-jsx-best-practices
Command: npx skills add https://github.com/mymx2/foreman --skill vue-jsx-best-practices-mymx2

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill resolves common friction points when writing JSX in Vue, specifically addressing the confusion between React-style attribute naming and Vue-compliant HTML attributes.

Core Features & Use Cases

  • Attribute Standardization: Provides clear guidance on using standard HTML attributes like class and for instead of React-specific conventions.
  • TypeScript Configuration: Offers verified settings to ensure proper type inference and IntelliSense for Vue JSX/TSX.
  • Use Case: When migrating a component library from React to Vue, use this Skill to identify and correct attribute naming errors that cause TypeScript build failures.

Quick Start

Ask the assistant to review your current JSX code and suggest the necessary attribute changes to ensure full compatibility with Vue 3 standards.

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 throw TypeScript build failures when using className?

Vue JSX throws TypeScript build failures because it requires standard HTML-compliant attributes like `class` instead of React-specific conventions such as `className`. You must standardize JSX attribute usage to align with Vue 3 standards and ensure proper type inference.

How do I configure TypeScript for proper type inference in Vue TSX files?

To configure TypeScript for Vue TSX files, apply verified settings that enable proper type inference and IntelliSense for render functions. This ensures full compatibility with Vue 3 JSX standards during component development and migration projects.

What is the best way to migrate React JSX attributes to Vue 3 standards?

The best way to migrate React JSX attributes to Vue 3 is to review your code and replace React-specific patterns with HTML-compliant naming conventions. This standardizes attribute usage, satisfying requirements for type safety and proper event handling in Vue.

Can I use Vite plugin integration with Vue JSX render functions?

Yes, you can use Vite plugin integration with Vue JSX render functions. Configuring the Vite plugin correctly ensures proper TypeScript type inference and enforces HTML-compliant naming conventions for component development in Vue 3 applications.

Does Vue 3 JSX support standard HTML attributes like `for` instead of `htmlFor`?

Yes, Vue 3 JSX supports standard HTML attributes like `for` instead of React-specific conventions such as `htmlFor`. Enforcing these HTML-compliant naming conventions resolves friction points and ensures full compatibility with Vue 3 standards.

When do I need to standardize JSX attribute usage in Vue web development?

You need to standardize JSX attribute usage in Vue web development when writing render functions or migrating a component library from React. This process corrects attribute naming errors and ensures proper event handling and type safety.