
React Patterns
A solid reference guide that covers the essentials without drowning you in theory. It walks through component design principles, hook patterns, state management decisions, and React 19's new hooks like useActionState and useOptimistic. The tables are actually useful for quick lookups on when to extract custom hooks or which state solution fits your complexity level. It includes a practical anti-patterns section that calls out common mistakes like prop drilling and premature optimization. The file structure diagram gives you a concrete starting point for organizing larger apps. Best used when you're setting up a new React project or need to justify architectural decisions to your team.
- skills.sh installs
- 970
- GitHub stars
- 43.1K
- last updated
- Jul 14, 2026
Install
$ npx -y skills add sickn33/antigravity-awesome-skills --skill react-patterns --agent claude-codeInstalls into .claude/skills of the current project.
Files
React Patterns
Principles for building production-ready React applications.
1. Component Design Principles
Component Types
| Type | Use | State |
|---|---|---|
| Server | Data fetching, static | None |
| Client | Interactivity | useState, effects |
| Presentational | UI display | Props only |
| Container | Logic/state | Heavy state |
Design Rules
- One responsibility per component
- Props down, events up
- Composition over inheritance
- Prefer small, focused components
2. Hook Patterns
When to Extract Hooks
| Pattern | Extract When |
|---|---|
| useLocalStorage | Same storage logic needed |
| useDebounce | Multiple debounced values |
| useFetch | Repeated fetch patterns |
| useForm | Complex form state |
Hook Rules
- Hooks at top level only; React’s
useAPI is an exception that can be called in loops/conditions inside a component or Hook (not in try/catch); see use - Same order every render
- Custom hooks start with "use"
- Clean up effects on unmount
3. State Management Selection
Sponsors
Details
- Repository
- github.com/sickn33/antigravity-awesome-skills
- Category
- Frontend Development
- First seen
- May 16, 2026
More from sickn33/antigravity-awesome-skills
All 708- Lint And Validate968
- File Organizer967
- Architect Review965
- Frontend Developer964
- Blockchain Developer956
- Seo Fundamentals956
- App Builder953
- Geo Fundamentals949
- Ai Engineer948
- Production Code Audit937
- Pptx Official928
- Daily News Report921
- Doc Coauthoring921
- Content Creator914
- Tdd Workflow913
- Testing Patterns908
- Performance Profiling893
- Shopify Apps887
- Concise Planning879
- Code Documentation Code Explain874
- Flutter Expert873
- Security Audit863
- Autonomous Agent Patterns858
- Frontend Ui Dark Ts858