react-patterns
React 18/19 patterns including hooks discipline, server/client component boundaries, Suspense + error boundaries, form actions, data fetching, state management decision trees, and accessibility-first composition. Use when writing or reviewing React components.
Target: React / Next.js. Automatically collected · unverified.
Excerpt from the author’s documentation
Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.
Read the original English text
Topics in the source
- React Patterns
- When to Activate
- Core Principles
- 1. Render is a Pure Function of Props and State
- 2. Side Effects Outside Render
- 3. Composition Over Inheritance
- Hooks Discipline
- State Location Decision Tree
Idiomatic React 18/19 patterns for building robust, accessible, performant component trees. Writing or modifying React function components, custom hooks, or component trees Reviewing JSX/TSX files Designing state shape or component composition Migrating class components or older forwardRef/useEffect-heavy code Choosing between local state, lifted state, context, and external stores Working with Server Components / Client Components (Next.js App Router, RSC) Implementing forms with React 19 actions or controlled inputs Wiring data fetching with TanStack Query / SWR / RSC Derived state in useEffect adds a render cycle, can desync, and obscures the data flow. Effects, mutations, network calls, and subscriptions live in event handlers or useEffect — never in the render body. React has no inheritance model for components. Compose with children, render props, or component props. See rules/react/hooks.md for the full ruleset. Highlights: Top-level only, never conditional Cleanup every subscription, interval, listener Functional updater (setX(prev => prev + 1)) when new state depends on old Default position: do not memoize — add useMemo/useCallback only when a profiler or a dependency chai
This is an excerpt. Refer to the complete source and its current requirements.
- Source repository
- affaan-m/ECC
- Source file
- .kiro/skills/react-patterns/SKILL.md
- Fixed revision
- d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
Requirements
- Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.
A small first task
先阅读原作者说明,再决定是否在自己的 AI 工具中使用。
Instructions for your AI tool
- Claude Desktop: resource-specific guide not available yet
- Claude Code: resource-specific guide not available yet
- Cursor: resource-specific guide not available yet
- Codex: resource-specific guide not available yet
Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.
Sources and evidence
This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.
Author: affaan-m/ECC · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T14:01:48.653Z.
Categories are inferred from names, descriptions and paths. They do not establish compatibility.
License and attribution
MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.
Original license ↗Synchronization, copying and user-reported success do not mark a resource as runtime-tested.
Limitations and notes
- Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.