react-patterns
Comprehensive React 19 patterns expert covering Server Components, Actions, use() hook, useOptimistic, useFormStatus, useFormState, React Compiler, concurrent…
Skill by jh941213
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/jh941213-react-patterns
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: frontend, backend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/react-patterns
Tools it pre-approves 6
From allowed-tools in SKILL.md: the agent may use these without asking you each time.
Read,Write,Edit,Bash,Grep,Glob
What's inside
- Skill name
react-patterns- Description
- Comprehensive React 19 patterns expert covering Server Components, Actions, use() hook, useOptimistic, useFormStatus, useFormState, React Compiler, concurrent features, Suspense, and modern TypeScript development. Proactively use for any React development, component architecture, state management, performance optimization, or when implementing React 19's latest features.
- License
- MIT
- Allowed tools
- Read,, Write,, Edit,, Bash,, Grep,, Glob
- Instructions
- 1,404 lines in SKILL.md · view on GitHub
Before installing
- Pre-approves some shell commands
Agent Skills spec issues
- body: 1404 lines (spec recommends under 500)
Files (3)
- SKILL.md
- learn.md
- reference.md
SKILL.md (first lines)
# React Development Patterns
Expert guide for building modern React 19 applications with new concurrent features, Server Components, Actions, and advanced patterns.
## When to Use
- Building React 19 components with TypeScript/JavaScript
- Managing component state with useState and useReducer
- Handling side effects with useEffect
- Optimizing performance with useMemo and useCallback
- Creating custom hooks for reusable logic
- Implementing component composition patterns
- Working with refs using useRef
- Using React 19's new features (use(), useOptimistic, useFormStatus)
- Implementing Server Components and Actions
- Working with Suspense and concurrent rendering
- Building forms with new form hooks
## Core Hooks Patterns
### useState - State Management
Basic state declaration and updates:
```typescript
import { useState } from 'react';
function Counter() {
const [count, setCount] = useState(0);
return (
<button onClick={() => setCount(count + 1)}>
Count: {count}
</button>
);
}
```
State with initializer function (expensive computation):
```typescript
const [state, setState] = useState(() => {
const initialState = computeExpensiveValue();
return initialState;
});
```
Multiple state variables:
```typescript
function UserProfile() {
const [name, setName] = useState('');
const [age, setAge] = useState(0);
const [email, setEmail] = useState('');
return (
<form>
<input value={name} onChange={e => setName(e.target.value)} />
<input type="number" value={age} onChange={e => setAge(Number(e.target.value))} />
<input type="email" value={email} onChange={e => setEmail(e.target.value)} />
</form>
);
}
```
### useEffect - Side Effects
Basic effect with cleanup:
```typescript
import { useEffect } from 'react';
function ChatRoom({ roomId }: { roomId: string }) {
useEffect(() => {
const connection = createConnection(roomId);
connection.connect();
// Cleanup function
return () => {
connection.disconnect();
};
}, [roomId]); // Dependency array
return <div>Connected to {roomId}</div>;
}
```
Effect with multiple dependencies:
```typescript
function ChatRoom({ roomId, serverUrl }: { roomId: string; serverUrl: string }) {
useEffect(() => {
const connection = createConnection(serverUrl, roomId);
connection.connect();
return () => connection.disconnect();
}, [roomId, serverUrl]); // Re-run when either changes
return <h1>Welcome to {roomId}</h1>;
}
```
Effect for subscriptions:
```typescript
function StatusBar() {
const [isOnline, setIsOnline] = useState(true);
useEffect(() => {
function handleOnline() {
setIsOnline(true);
}
function handleOffline() {
setIsOnline(false);
}
window.addEventListener('online', handleOnline);
window.addEventListener('offline', handleOffline);From jh941213/my-codex-cli-asset, MIT.
More from jh941213/my-codex-cli-asset
- 0.445score
shadcn-ui
jh941213
Complete shadcn/ui component library guide including installation, configuration, and implementation of accessible React components.
SkillDFreshness: D★ 4Claude Code +9 - 0.443score
compact-guide
jh941213
컨텍스트 관리 가이드.
SkillDFreshness: D★ 4Claude Code +9 - 0.443score
docs
jh941213
현재 프로젝트의 코드 변경사항을 분석하여 /docs/ 폴더에 문서를 자동 생성합니다.
SkillDFreshness: D★ 4Claude Code +9 - 0.443score
build-fix
jh941213
TypeScript 및 빌드 에러를 점진적으로 수정.
SkillDFreshness: D★ 4Claude Code +9 - 0.443score
e2e-verify
jh941213
개발 완료 후 피처 기반 E2E 테스트 작성 및 실행.
SkillDFreshness: D★ 4Claude Code +9 - 0.443score
frontend
jh941213
빅테크 스타일(Stripe, Vercel, Apple) UI 개발.
SkillDFreshness: D★ 4Claude Code +9 - 0.443score
handoff
jh941213
세션 종료 전 HANDOFF.md 작업 인계 문서 생성.
SkillDFreshness: D★ 4Claude Code +9 - 0.443score
nano-banana
jh941213
Nano Banana 2로 이미지 생성/편집.
SkillDFreshness: D★ 4Claude Code +9 - 0.443score
prd
jh941213
사용자의 아이디어를 분석하여 PRD(Product Requirements Document)를 생성합니다.
SkillDFreshness: D★ 4Claude Code +9 - 0.440score
plan
jh941213
복잡한 작업 전 계획 수립.
SkillDFreshness: D★ 4Claude Code +9 - 0.440score
spec-verify
jh941213
명세서 기반 구현 검증.
SkillDFreshness: D★ 4Claude Code +9 - 0.440score
review
jh941213
현재 브랜치의 변경사항 코드 리뷰.
SkillDFreshness: D★ 4Claude Code +9
Signals
- Stars
- 4
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Mar 2, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/jh941213/my-codex-cli-asset
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from jh941213
- 0.445score
shadcn-ui
jh941213
Complete shadcn/ui component library guide including installation, configuration, and implementation of accessible React components.
SkillDFreshness: D★ 4Claude Code +9 - 0.443score
compact-guide
jh941213
컨텍스트 관리 가이드.
SkillDFreshness: D★ 4Claude Code +9 - 0.443score
docs
jh941213
현재 프로젝트의 코드 변경사항을 분석하여 /docs/ 폴더에 문서를 자동 생성합니다.
SkillDFreshness: D★ 4Claude Code +9 - 0.443score
build-fix
jh941213
TypeScript 및 빌드 에러를 점진적으로 수정.
SkillDFreshness: D★ 4Claude Code +9 - 0.443score
e2e-verify
jh941213
개발 완료 후 피처 기반 E2E 테스트 작성 및 실행.
SkillDFreshness: D★ 4Claude Code +9 - 0.443score
frontend
jh941213
빅테크 스타일(Stripe, Vercel, Apple) UI 개발.
SkillDFreshness: D★ 4Claude Code +9
Cite this page
react-patterns skill. Agent Mart. https://agentmart.dev/skills/jh941213-react-patterns (last updated 2026-10-24)