react

Guide React component development with best practices for state management and performance.

1|Updated Sep 5, 2025
One-click install
npx skills add https://github.com/KubrickCode/general --skill react-kubrickcode
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react
Source: https://github.com/KubrickCode/general/tree/main/.claude_kr/skills/react
Command: npx skills add https://github.com/KubrickCode/general --skill react-kubrickcode

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides best practices and coding standards for React component development, addressing issues like inconsistent component design, inefficient state management, and performance bottlenecks. It helps developers build maintainable, performant, and scalable user interfaces.

Core Features & Use Cases

  • Component Structure: Guides on file organization, naming, and export patterns for clarity.
  • State Management Hierarchy: Defines when to use local state, props drilling, Context API, or global state solutions like Zustand.
  • Hook Usage: Best practices for custom Hooks, minimizing useEffect, and calculating derived values efficiently.
  • Performance Optimization: Advises on conditional rendering, activity components, and leveraging React Compiler for memoization.
  • Use Case: A frontend developer is building new React components and wants to ensure they are performant, reusable, and follow modern best practices.
  • Use Case: An existing React application is experiencing performance issues or has inconsistent component patterns, and the team needs a guide to refactor and optimize it.

Quick Start

Create a React functional component for a 'UserCard' following best practices for props, state management, and conditional rendering.