SkillsReviewed · vuejs-ai

Vue JSX Best Practices

Vue JSX Best Practices is a coding-assistant skill for developers writing Vue JSX or migrating from React, with coverage limited to attributes, events and basic setup. Its entry file links to one guide containing code examples and TypeScript and Vite configuration.

Researched 16 Nov 2026

In short.

Vue JSX Best Practices is a coding-assistant skill for Vue developers, limited to one focused guide on JSX conventions and configuration. Version 2.0.0 covers HTML-style attributes, input events, Vue JSX typing and Vite plugins. It offers concrete migration examples but documents no assistant-specific installation method and supplies no compilation, runtime or assistant-performance results.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage comprises skills/vue-jsx-best-practices/SKILL.md and skills/vue-jsx-best-practices/reference/render-function-jsx-vue-vs-react.md at revision 198f0cd8f7f9c0a3d9b566ccc16de6677519ee78, plus the repository root LICENSE as the related notice. Other repository folders and the linked upstream Vue documentation are excluded. Nothing was executed; installation, assistant integration, compilation and runtime behavior remain unassessed.

The overview

Identity

The skill is named vue-jsx-best-practices, declares version 2.0.0 and credits vuejs-ai as its author. It contains SKILL.md and one linked reference document. Original source folder: [https://github.com/vuejs-ai/skills/tree/main/skills/vue-jsx-best-practices].

JSX places interface markup inside JavaScript; TSX is the TypeScript form. This skill addresses Vue's conventions for that markup, particularly where developers bring habits from React.

Assessment

This is a useful reference for a focused problem: React-style JSX attributes appearing in Vue components. Its practical strengths are paired examples and explicit compiler and build settings. Effectiveness with a particular coding assistant, project or dependency combination is not assessed.

Users

The clearest audiences are React developers moving components to Vue, Vue developers encountering JSX attribute type errors, and coding assistants helping with those tasks. Beginners get concrete spelling changes; experienced developers get configuration details and event-handling examples. The material assumes some familiarity with components and project configuration.

Capabilities

The guide recommends class instead of className and for instead of htmlFor. It also lists tabindex and readonly, shows onClick handlers, and uses onInput for live input updates. Its event-modifier example uses withModifiers with self to restrict handling to clicks on the element itself.

It supplies TypeScript JSX settings and a Vite configuration registering Vue and Vue JSX plugins. The supplied files provide guidance and examples, with no executable migration utility.

Using it

Requirements

Applying the examples requires a Vue project configured to transform JSX. TSX also needs Vue's JSX type definitions. The Vite example uses vite, @vitejs/plugin-vue and @vitejs/plugin-vue-jsx; it does not establish Vite as a requirement for every possible setup.

The guide says Vue 3.4 stopped implicitly registering the global JSX namespace. Minimum Node.js and TypeScript versions, pinned dependency versions and compatible assistant hosts are unspecified.

Mechanism

SKILL.md directs JSX migration and attribute-type-error tasks to reference/render-function-jsx-vue-vs-react.md. That document supplies a checklist, contrasting JSX examples, an attribute comparison and configuration snippets. The intended mechanism is to give an assistant relevant written guidance; automatic discovery and activation depend on an unspecified host.

Setup

Keep SKILL.md and its reference subdirectory together so the relative document link remains usable. Follow the chosen assistant's own skill-loading instructions; these files provide no host-specific installation command.

For project configuration, the guide sets compilerOptions.jsx to preserve and compilerOptions.jsxImportSource to vue in tsconfig.json. Its vite.config.ts imports defineConfig, vue and vueJsx, then registers vue() and vueJsx() in the plugins array. Package installation commands and version constraints are absent.

Example

For an email field migrated from React, the source changes className="input-field" to class="input-field" and htmlFor="email" on the label to for="email", retaining id="email" on the input. For handling input as its value changes, the guide uses onInput. These examples illustrate the recommended edits; they include no compiler or browser output.

Assessment & evidence

Limitations

The material covers a small portion of React-to-Vue migration. It does not explain broader component migration concerns such as state management, routing or dependency replacement.

The event example invokes withModifiers without showing its import. Its input handler is untyped JavaScript, so adapting it to strict TSX requires appropriate event and target typing. Claims about TypeScript rejection and runtime tolerance are not accompanied by version-specific results.

Reasoning

The guide's rationale is consistency with Vue templates and stronger checking through Vue's JSX types. It distinguishes recommended attribute spelling from its statement that the runtime tolerates React-style names. That distinction matters: runtime rendering and acceptance by TypeScript are separate concerns. No measured reduction in errors or assistant accuracy improvement is established.

Alternatives

Developers can read the bundled reference directly without loading it into an assistant. It also points to Vue's JSX and TSX documentation for further reading: [https://vuejs.org/guide/extras/render-function.html#jsx-tsx]. The linked page's contents are not included in the supplied material, and no comparison with competing skills is available.

Evidence

The available source consists of the skill entry file, its linked reference document and the repository's root LICENSE. The reference contains the substantive configuration and code examples. Its immutable source is [https://raw.githubusercontent.com/vuejs-ai/skills/198f0cd8f7f9c0a3d9b566ccc16de6677519ee78/skills/vue-jsx-best-practices/reference/render-function-jsx-vue-vs-react.md].

These files contain no dependency lockfile, compatibility matrix, benchmark results or recorded assistant outcomes. The examples establish what the guide recommends, without establishing execution results.

Access & freshness

Costs

No purchase price, subscription or usage fee is stated for the skill. The MIT license grants broad usage rights, but the files do not establish the total cost of using it with an assistant. Assistant subscriptions, model or API charges, and integration effort remain unknown.

Rights

SKILL.md declares MIT, and the repository LICENSE permits use, copying, modification, publication, distribution, sublicensing and sale. Copies or substantial portions must retain the copyright and permission notices.

The notice credits hyf0 and SerKo with copyright in 2025. It provides the software without warranty and disclaims liability. Redistribution of the skill files should preserve the accompanying license notice.

Freshness

The supplied source is pinned to commit 198f0cd8f7f9c0a3d9b566ccc16de6677519ee78, with a capture timestamp of 2026-11-16T02:18:18.840Z. SKILL.md declares version 2.0.0 but gives no release date. Changes after that revision and compatibility with current dependency releases are unknown.

Actions

Confirm that the project uses Vue JSX or TSX and identify its installed Vue, TypeScript and build-plugin versions. Use the assistant host's documented installation method if loading the skill.

Apply the attribute changes to a small component, choose input events according to the intended behavior, and check the result with the project's normal type check, build and browser checks. Complete the missing withModifiers import and event typing when adapting those examples. These checks remain to be performed.

Evidence for this report

LICENSEnotice · checked 2026-11-16
skills/vue-jsx-best-practices/SKILL.mdselected · checked 2026-11-16