rohitg00/awesome-claude-code-toolkit/react-patterns
Claude Code and agent skill by rohitg00/awesome-claude-code-toolkit
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
React 19 patterns including Server Components, Actions, Suspense, hooks, and component composition
Install
npx vskill@latest install rohitg00/awesome-claude-code-toolkit/react-patternsSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as rohitg00/awesome-claude-code-toolkit/react-patterns.
React Patterns
use() Hook (React 19)
use() reads values from Promises and Context directly in render. Unlike other hooks, it can be called inside conditionals and loops.
Wrap components that use use() with a Promise in a <Suspense> boundary.
Server Components
Push 'use client' as deep as possible. Only leaves that need interactivity should be Client Components.
Server Actions
useActionState (React 19)
useOptimistic (React 19)
Suspense Boundaries
Place Suspense boundaries around independent data-fetching units. Avoid wrapping the entire page in a single boundary (defeats the purpose of streaming).
Error Boundaries
Or use Next.js error.tsx convention for route-level error handling.
Custom Hooks
Rules for custom hooks:
- Prefix with
use - Extract when logic is shared between 2+ components
- Keep hooks focused on a single concern
- Return tuples
[value, setter]or objects{ data, error, loading }
Compound Components
Performance Rules
- Avoid creating objects/arrays in JSX props (causes re-renders)
- Use
React.memoonly after profiling confirms unnecessary re-renders - Prefer
useMemo/useCallbackfor expensive computations or stable references passed to memoized children - Use
keyto reset component state intentionally - Colocate state: keep state as close to where it is used as possible
- Avoid prop drilling beyond 2 levels; use Context or composition instead
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/react-patterns/SKILL.md
Popularity
- Repository stars
- 1,744
- Repository forks
- 549
- 7-day trend score
- 37
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 16 Mar 2026, 8 months ago.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rohitg00/awesome-claude-code-toolkit/react-patterns)