AI AGENT ADDONS

React Best Practices

0xbigboss/claude-code

Writing React code can be tricky. This guide shows you the right way to build components with TypeScript. You will learn when to use effects and when to avoid them. Strong patterns help you keep your code simple and fast.

Use event handlers for user actions. Calculate values during render instead of effects. For expensive work, use useMemo. When you need to work with browser APIs or non-React libraries, use an Effect with cleanup. Refs are for values that do not affect rendering.

Custom hooks let you share logic, not state. Prefer composition over prop drilling. Break large components into smaller parts. This skill helps anyone who writes React code every day.

Add React Best Practices skill to your workflow

Global

mkdir -p ~/.claude/skills/react-best-practices

Project

mkdir -p .claude/skills/react-best-practices

Source Repository

Stars
51
Forks
7
Watchers
51
License
Apache-2.0
Last Push
27 days ago
Created
1 year ago