react-coding

Enforces React.jsx/.tsx development best practices including hooks, state management, memoization, typing, and useEffect cleanup rules.

12|2|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/Dynokostya/just-works --skill react-coding
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-coding
Source: https://github.com/Dynokostya/just-works/tree/main/.claude/skills/react-coding
Command: npx skills add https://github.com/Dynokostya/just-works --skill react-coding

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers write more robust, performant, and maintainable React code by providing clear guidelines and preventing common pitfalls.

Core Features & Use Cases

  • Prevents common React mistakes: Addresses issues like incorrect useEffect usage, state mutation, and improper key usage.
  • Optimizes performance: Offers guidance on memoization and avoiding unnecessary re-renders.
  • Ensures correct typing: Promotes best practices for component typing and generics.
  • Use Case: When writing a new React component, this Skill will flag potential issues like using an array index as a key or mutating state directly, guiding you towards a correct implementation.

Quick Start

Apply the react-coding skill to ensure all useEffect hooks have proper cleanup functions.

Frequently Asked Questions about react-coding

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

FAQPage Schema
How do I prevent common React hooks mistakes like incorrect useEffect usage?

To prevent React component bugs, enforce best practices for hook usage and state management. This Skill flags incorrect useEffect cleanup, direct state mutation, and improper key usage to ensure robust, maintainable frontend code.

What is the best way to optimize React performance and avoid unnecessary re-renders?

The best way to optimize React performance is through proper memoization and state management. This Skill provides guidance on applying memoization techniques and structuring components to prevent unnecessary re-renders.

How do I ensure correct TypeScript typing for React component generics?

To ensure correct TypeScript typing for React components, adhere to modern component typing patterns. This Skill promotes best practices for typing props, generics, and hooks across your .tsx and .jsx files.

Can I apply React best practices to both JavaScript and TypeScript files?

Yes, you can apply React best practices to both JavaScript and TypeScript files. This Skill analyzes all .tsx and .jsx files to enforce hook rules, state management, and component typing regardless of the language.

Why should I not use an array index as a key in React lists?

You should not use an array index as a key in React lists because it causes maintainability issues and bugs during reordering. This Skill flags improper key usage and guides you toward stable, correct implementations.