SKILL

react-dev

This skill should be used when building React components with TypeScript, typing hooks, handling events, or when React TypeScript, React 19, Server Components are mentioned. Covers type-safe patterns for React 18-19 including generic components, proper event typing, and routing integration (TanStack Router, React Router).

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 TypeScript

Type-safe React = compile-time guarantees = confident refactoring. Building typed React components Implementing generic components Typing event handlers, forms, refs Using React 19 features (Actions, Server Components, use()) Router integration (TanStack Router, React Router) Custom hooks with proper typing NOT for: non-React TypeScript, vanilla JS React React 19 breaking changes require migration. Key patterns: ref as prop - forwardRef deprecated: useActionState - replaces useFormState: use() - unwraps promises/context: See react-19-patterns.md for useOptimistic, useTransition, migration checklist. Props - extend native elements: Children typing: Discriminated unions for variant props: Use specific event types for accurate target typing: See event-handlers.md for focus, drag, clipboard, touch, wheel events. useState - explicit for unions/null: useRef - null for DOM, value for mutable: useReducer - discriminated unions for actions: Custom hooks - tuple returns with as const: useContext - null guard pattern: See hooks.md for useCallback, useMemo, useImperativeHandle, useSyncExternalStore. Generic components infer types from props - no manual annotations at call site. Pattern - keyof

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
davila7/claude-code-templates
Source file
cli-tool/components/skills/development/react-dev/SKILL.md
Fixed revision
21be197f100a12b8d0dd9a211cc244c8179f84d3
Read the complete original documentation ↗

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: davila7/claude-code-templates · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T14:01:44.658Z.

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.