react-dev

Installation
Summary

Type-safe React 18–19 patterns with compile-time guarantees for components, hooks, events, and routing.

  • Covers React 19 breaking changes: ref as prop (no forwardRef), useActionState for forms, use() for promise unwrapping, and Server Components with async data fetching
  • Specific event typing (MouseEvent, ChangeEvent, KeyboardEvent, etc.) and discriminated unions for variant props eliminate runtime surprises
  • Generic component patterns with constrained types for reusable Tables, Lists, Modals, and Forms that infer types from props
  • Type-safe routing integration for both TanStack Router (Zod validation, compile-time route safety) and React Router v7 (automatic type generation from loaders)
  • Custom hook typing with as const tuple returns, useRef null guards, useReducer discriminated actions, and useContext error boundaries
SKILL.md

React TypeScript

Type-safe React = compile-time guarantees = confident refactoring.

<when_to_use>

  • 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

</when_to_use>

<react_19_changes>

Related skills

More from softaworks/agent-toolkit

Installs
3.5K
GitHub Stars
1.8K
First Seen
Jan 20, 2026