🎯

react-best-practices

🎯Skill

from 0xbigboss/claude-code

VibeIndex|
What it does
|

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)

react-best-practices

Installation

Vibe Index InstallInstalls to .claude/skills/ - auto-recognized by Claude Code
npx vibeindex add 0xbigboss/claude-code --skill react-best-practices
skills.sh Install⚠ Installs to .agents/skills/ - may not be auto-recognized by Claude Code
npx skills add 0xbigboss/claude-code --skill react-best-practices
Manual InstallCopy SKILL.md content and save to the path below
~/.claude/skills/react-best-practices/SKILL.md

SKILL.md

1,929Installs
35
-
Last UpdatedJan 26, 2026

More from this repository10

🎯
typescript-best-practices🎯Skill

Provides TypeScript best practices for type-first development, making illegal states unrepresentable, and runtime validation patterns

🎯
python-best-practices🎯Skill

Provides Python best practices for type-first development with dataclasses, discriminated unions, NewType, and Protocol patterns

🎯
web-fetch🎯Skill

Fetches web content with intelligent content extraction, converting HTML pages to clean markdown using curl and html2markdown with CSS selectors for targeted extraction.

🎯
zig-best-practices🎯Skill

Provides Zig patterns for type-first development with tagged unions, explicit error sets, comptime validation, and memory management best practices.

🎯
tamagui-best-practices🎯Skill

Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling for Tamagui-based projects.

🎯
nix-best-practices🎯Skill

Nix best practices skill covering flake structure, overlays, unfree package handling, and binary overlays for working with flake.nix or shell.nix configurations

🎯
playwright-best-practices🎯Skill

Provides Playwright test patterns for resilient locators, Page Object Models, fixtures, web-first assertions, and network mocking with CLI-optimized output for agent workflows.

🎯
go-best-practices🎯Skill

Provides Go patterns for type-first development with custom types, interfaces, functional options, and structured error handling.

🎯
openai-image-gen🎯Skill

React best practices skills covering hooks, effects, refs, component design, escape hatches, and anti-patterns for use when reading or writing React components.

🎯
axe-ios-simulator🎯Skill

iOS Simulator automation using AXe CLI for touch gestures, text input, screenshots, video recording, and accessibility inspection