react-render-types-composition

Enforce React component composition constraints with @renders type annotations in lint-time checks.

110|3|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/HorusGoul/eslint-plugin-react-render-types --skill react-render-types-composition
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-render-types-composition
Source: https://github.com/HorusGoul/eslint-plugin-react-render-types/tree/main/skills/react-render-types-composition
Command: npx skills add https://github.com/HorusGoul/eslint-plugin-react-render-types --skill react-render-types-composition

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enforces React component composition constraints by using @renders type annotations, helping teams prevent invalid child rendering and enforce design-system contracts at lint time.

Core Features & Use Cases

  • Constrained children and slot props using @renders annotations to validate permissible component trees.
  • Wrapper and transparent-component patterns to compose layouts without breaking render-type checks.
  • Advanced techniques including unions, type aliases, render chains, and unchecked modifiers to handle complex rendering scenarios across apps.

Quick Start

Annotate your components with @renders to declare allowed render targets and use transparent wrappers to compose layouts while keeping type safety.

Frequently Asked Questions about react-render-types-composition

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

FAQPage Schema
How do I enforce React component composition constraints at lint time?

You can enforce React component composition at lint time by using @renders type annotations to validate permissible child components and slot props during development.

What are @renders type annotations in React?

@renders type annotations are declarative markers used on React components to specify allowed render targets, enabling static analysis to prevent invalid child rendering and enforce design-system contracts.

How do I validate slot props and constrained children for a React design system?

You validate slot props and constrained children by annotating your React design system components with @renders, which checks permissible component trees and slot prop validations across multiple files.

Can I handle complex rendering scenarios like unions and type aliases with React render types?

Yes, React render types support advanced techniques including unions, type aliases, render chains, and unchecked modifiers to handle complex rendering scenarios across applications.

Do I need additional dependencies to use @renders annotations for React lint-time checks?

No additional dependencies are required. The Skill operates with safe operational defaults for discovery and context loading, applying @renders annotations directly without external libraries.