A Claude Code plugin that provides expert React component and custom hook generation with TypeScript support.
This plugin adds a specialized skill to Claude Code for generating production-ready React components and hooks following modern best practices and design patterns.
- Component Generation: Create functional components with TypeScript
- Custom Hooks: Build reusable hooks following React conventions
- TypeScript Integration: Full type safety with comprehensive type definitions
- Best Practices: Follows React 18+ patterns and modern conventions
- Performance Optimization: Implements memoization and optimization strategies
- Accessibility: Includes ARIA attributes and semantic HTML
- Multiple Patterns: Support for compound components, render props, HOCs
- Popular Libraries: Integration guidance for Redux, React Hook Form, etc.
# Install from GitHub
claude-code plugins install https://github.com/IncomeStreamSurfer/claude-react-generator
# Or install to user scope
claude-code plugins install https://github.com/IncomeStreamSurfer/claude-react-generator --scope user
# Or install to project scope
claude-code plugins install https://github.com/IncomeStreamSurfer/claude-react-generator --scope project- Clone this repository to your Claude Code plugins directory
- The plugin will be automatically detected by Claude Code
Once installed, Claude Code will automatically use this skill when you ask for help with:
- Creating React components
- Building custom hooks
- React architecture guidance
- TypeScript integration with React
- Component optimization
- React patterns implementation
Generate a component:
Create a responsive Card component with TypeScript that accepts title, description, and image props
Create a custom hook:
Build a useLocalStorage hook that syncs state with localStorage
Build a form component:
Generate a LoginForm component using React Hook Form with email and password validation
Create a compound component:
Design a Tabs compound component with Tab and TabPanel sub-components
- Functional components with TypeScript
- Components with state and effects
- Compound components
- Render prop components
- Higher-order components
- State management hooks
- Effect hooks
- Context hooks
- Complex logic hooks
- Code organization patterns
- Performance optimization
- Accessibility guidelines
- Testing considerations
- File structure recommendations
- State management (Redux, Zustand, Recoil)
- Form libraries (React Hook Form, Formik)
- UI libraries (MUI, Chakra, shadcn/ui)
- Styling solutions (Tailwind, styled-components, CSS Modules)
The skill is defined in skills/react-generator/SKILL.md and includes:
- Comprehensive React component patterns
- TypeScript integration best practices
- Modern React 18+ features
- Performance optimization strategies
- Accessibility guidelines
- File structure recommendations
- Claude Code CLI
- Node.js and npm/yarn (for React projects)
- TypeScript (recommended)
Contributions are welcome! Please feel free to submit issues or pull requests.
MIT License - see LICENSE file for details
For issues or questions:
- Open an issue on GitHub
- Check Claude Code Documentation
IncomeStreamSurfer
1.0.0