react-best-practices
π―Skillfrom 0xbigboss/claude-code
React best practices skills covering hooks, effects, refs, component design, escape hatches, and anti-patterns for use when reading or writing React components.
Overview
A Claude Code skill that provides React patterns for hooks, effects, refs, and component design with a strong emphasis on the principle that effects are escape hatches, not default tools. It covers when to use and when not to use effects, promoting derived state calculation during render, useMemo for expensive operations, and key-based state resets instead of effect-driven updates.
Key Features
- Effects as Escape Hatches - Core teaching that effects should only synchronize with external systems (WebSocket, browser APIs, third-party libraries), not manage derived state or event handling
- Anti-Pattern Prevention - Explicitly documents bad patterns (effect for derived state, effect for event handling, effect for state reset) with correct alternatives
- TypeScript Integration - Designed to work alongside a typescript-best-practices skill for complete type-safe React development
- Key-Based State Reset - Teaches using React key prop to reset component state on prop changes instead of effects
- useMemo Guidance - Provides correct patterns for expensive calculations using useMemo instead of effect-based caching
Who is this for?
This skill is designed for React developers who want to write cleaner, more performant components by reducing unnecessary effect usage. It is particularly valuable for teams whose components suffer from excess re-renders, stale state bugs, or overly complex effect chains, and who want AI assistance that enforces modern React patterns.
Same repository
0xbigboss/claude-code(34 items)
Installation
npx vibeindex add 0xbigboss/claude-code --skill react-best-practicesnpx skills add 0xbigboss/claude-code --skill react-best-practices~/.claude/skills/react-best-practices/SKILL.mdSKILL.md
More from this repository10
Provides TypeScript best practices for type-first development, making illegal states unrepresentable, and runtime validation patterns
Provides Python best practices for type-first development with dataclasses, discriminated unions, NewType, and Protocol patterns
Fetches web content with intelligent content extraction, converting HTML pages to clean markdown using curl and html2markdown with CSS selectors for targeted extraction.
Provides Zig patterns for type-first development with tagged unions, explicit error sets, comptime validation, and memory management best practices.
Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling for Tamagui-based projects.
Nix best practices skill covering flake structure, overlays, unfree package handling, and binary overlays for working with flake.nix or shell.nix configurations
Provides Playwright test patterns for resilient locators, Page Object Models, fixtures, web-first assertions, and network mocking with CLI-optimized output for agent workflows.
Provides Go patterns for type-first development with custom types, interfaces, functional options, and structured error handling.
React best practices skills covering hooks, effects, refs, component design, escape hatches, and anti-patterns for use when reading or writing React components.
iOS Simulator automation using AXe CLI for touch gestures, text input, screenshots, video recording, and accessibility inspection