using-react-component-pattern
CommunityEnforce React components with explicit props.
Software Engineering#typescript#react#code-quality#code-review#props#named-exports#component-pattern
Authorwredzio
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps React teams enforce a consistent component-building pattern by requiring a dedicated Props interface and a named export, reducing ambiguity and errors in codebases.
Core Features & Use Cases
- Props interface naming: Require a component-specific interface named after the component with a Props suffix.
- Named exports: Enforce exporting components by name and avoiding default exports.
- Destructuring inside the function: Ensure props are destructured within the function body, not in the parameters.
- TypeScript integration: Applies to TypeScript React components to promote type-safety and clarity.
- Use Case: When scaffolding new components or auditing existing ones, apply these rules to ensure consistency and easier refactoring.
Quick Start
Create a component file that exports by name, defines a Props interface named after the component with Props suffix, destructures props inside the function, and uses an arrow function.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: using-react-component-pattern Download link: https://github.com/wredzio/core2/archive/main.zip#using-react-component-pattern Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.