react
/react
React Hooks, TypeScript, component patterns, and modern React best practices. Use when writing React components, hooks, context, or using Suspense/ErrorBoundary/Lazy loading.
- Author
- belos-street ↗
- Repository
- skill-kit ↗
- Licence
- MIT
- Last repository change
- 09.10.2026
Assessment and security
- Files in this package
- 4
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 09.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
React Hooks, TypeScript, component patterns, and modern React best practices. Use when writing React components, hooks, context, or using Suspense/ErrorBoundary/Lazy loading.
Original author description
React Hooks, TypeScript, component patterns, and modern React best practices. Use when writing React components, hooks, context, or using Suspense/ErrorBoundary/Lazy loading.
How it works
- Preferences
- Core
- Features
- Quick Reference
SKILL.md preview
---
name: react
description: React Hooks, TypeScript, component patterns, and modern React best practices. Use when writing React components, hooks, context, or using Suspense/ErrorBoundary/Lazy loading.
---
# React
> Based on React 19 with TypeScript. Always use functional components with Hooks.
## Preferences
- Prefer TypeScript over JavaScript
- Prefer functional components over class components
- Prefer composition over inheritance
- Use `useMemo` and `useCallback` judiciously for performance optimization
- Avoid prop drilling with Context or composition
## Core
| Topic | Description | Reference |
|-------|-------------|-----------|
| Hooks | useState, useEffect, useCallback, useMemo, useRef, useContext, useReducer, useId, useTransition, useDeferredValue, useSyncExternalStore | [hooks](references/hooks.md) |
| Component Patterns | Function components, props, children, composition, render props, forwardRef, memo | [components-patterns](references/components-patterns.md) |
## Features
| Topic | Description | Reference |
|-------|-------------|-----------|
| Advanced Features | Suspense, Error Boundary, Lazy loading, Context, Refs, Portals | [advanced-features](references/advanced-features.md) |
## Quick Reference
### Function Component with TypeScript
```tsx
import { useState, useEffect, useCallback, useMemo } from 'react'
interface Props {
title: string
count?: number
onUpdate: (value: string) => void
}
export function MyComponent({ title, count = 0, onUpdate }: Props) {
const [value, setValue] = useState<string>('')
const doubled = useMemo(() => count * 2, [count])
const handleClick = useCallback(() => {
onUpdate(value)
}, [onUpdate, value])
useEffect(() => {
console.log('Component mounted or count changed:', count)
return () => console.log('Cleanup')
}, [count])
return (
<div>
<h1>{title} - {doubled}</h1>
<button onClick={handleClick}>Click</button>
</div>
)
}
```
### Key Imports
```ts
// State & Refs
import { useState, useRef, useReducer, useId } from 'react'
// Effects & Lifecycle
import { useEffect, useLayoutEffect, useInsertionEffect } from 'react'
// Performance
import { useMemo, useCallback, useTransition, useDeferredValue } from 'react'
// Context & Refs
import { useContext, useRef, forwardRef, useImperativeHandle, useSyncExternalStore } from 'react'
// Components
import { memo, useDeferredValue, Suspense, lazy, createContext, createRef } from 'react'
```
Files in this package (4)
- skill.md 2 KB
- references/advanced-features.md 8 KB
- references/components-patterns.md 8 KB
- references/hooks.md 8 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · belos-street/skill-kit | 100 | MIT |
| ericrisco/rsc-harness | 100 | MIT |
| mintuz/claude-plugins | 100 | MIT |
| frankxai/claude-skills-library | 100 | MIT |
| kriscard/Skills | 100 | MIT |
| xobotyi/cc-foundry | 100 | MIT |
| openops-cloud/openops | 100 | Apache-2.0 |
| bennypowers/cem | 100 | GPL-3.0 |
| nimadorostkar/Claude-Skills-collection | 100 | MIT |
Database snapshot: 13.11.2026 · package version 4fae2a3e75c6 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100react-best-practices
React component patterns, hooks, state management, and performance best practices. Use when building or reviewing React components. - 100react-expert
Use when building React 19.2+ applications requiring component architecture, hooks patterns, or state management. Invoke for Server Components, performance optimization, Suspense boundaries, React 19 features, <Activity>, useEffectEvent, cacheSignal. - 100react-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. - 100react-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. - 100react-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. - 100react-idioms
React 19+ patterns: custom hooks, Suspense boundaries, state management, component composition, and web performance. Use when developing or refactoring React components and client applications. Pair with typescript-idioms.