render-functions

Build Vue components programmatically using render functions and JSX.

235|25|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/PatternsDev/skills --skill render-functions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: render-functions
Source: https://github.com/PatternsDev/skills/tree/main/vue/render-functions
Command: npx skills add https://github.com/PatternsDev/skills --skill render-functions

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Vue applications often rely on templates for markup, but complex dynamic rendering can be hard to express with templates alone. Render functions and JSX provide full programmatic control over the DOM.

Core Features & Use Cases

  • Use the h() function to build VNodes programmatically
  • Enable JSX with Vue's Babel plugin for a more readable syntax
  • Choose render functions for library or component-kit development, where flexibility matters

Quick Start

Create a simple Vue component using a render function and JSX, then render it in your app.

Frequently Asked Questions about render-functions

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

FAQPage Schema
How do I use render functions in Vue for dynamic DOM construction?

Vue render functions use the h() function to programmatically build VNodes, passing tag, props, and children arguments. This provides full programmatic control over the DOM instead of relying on static templates for complex rendering challenges.

When should I use Vue render functions instead of templates?

Use Vue render functions instead of templates when developing component libraries or advanced UI patterns requiring flexibility. They solve complex dynamic rendering challenges that are difficult to express with template syntax alone, giving you full programmatic DOM construction control.

Can I use JSX in Vue components instead of the h() function?

Yes, you can use JSX in Vue components by enabling it through the Vue JSX Babel plugin. JSX provides a more readable syntax for writing render functions while still offering the same programmatic DOM control as the h() function.

What is the h() function in Vue and how does it work?

The h() function in Vue builds virtual DOM nodes programmatically. It accepts tag, props, and children arguments to construct VNodes, allowing developers to dynamically generate DOM structures within render functions instead of using static template markup.

Are Vue render functions better for component library development?

Vue render functions are well-suited for component library development because they offer maximum flexibility for dynamic, complex rendering. When building reusable component kits, programmatic VNode construction handles advanced UI patterns that templates struggle to express cleanly.