
React Dev
If you're writing React with TypeScript and tired of wrestling with event types or generic component patterns, this gives you the current playbook for React 18 and 19. It covers the breaking changes like ref as prop and useActionState, shows you how to type discriminated union props correctly, and handles the gnarly stuff like generic tables with keyof constraints. The router integration examples are solid for both TanStack and React Router. Most useful when you know React but want compile-time safety without constantly fighting the type system or reaching for any.
- skills.sh installs
- 4.2K
- GitHub stars
- 2.7K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add softaworks/agent-toolkit --skill react-dev --agent claude-codeInstalls into .claude/skills of the current project.
Files
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>
React 19 breaking changes require migration. Key patterns:
ref as prop - forwardRef deprecated:
// React 19 - ref as regular prop
type ButtonProps = {
ref?: React.Ref<HTMLButtonElement>;
} & React.ComponentPropsWithoutRef<'button'>;
function Button({ ref, children, ...props }: ButtonProps) {
return <button ref={ref} {...props}>{children}</button>;
}
useActionState - replaces useFormState:
import { useActionState } from 'react';
type FormState = { errors?: string[]; success?: boolean };
function Form() {
const [state, formAction, isPending] = useActionState(submitAction, {});
return <form action={formAction}>...</form>;
}
use() - unwraps promises/context:
Sponsors
Details
- Repository
- github.com/softaworks/agent-toolkit
- Categories
- Frontend Development, Backend & APIs, AI & Agent Building
More from softaworks/agent-toolkit
All 43- Marp Slide4.2K
- React Useeffect4.1K
- Codex4.1K
- Professional Communication4.1K
- Command Creator4.1K
- Dependency Updater4.1K
- Meme Factory4K
- Reducing Entropy4K
- Ship Learn Next4K
- Gemini4K
- Openapi To Typescript4K
- Feedback Mastery4K
- Difficult Workplace Conversations4K
- Domain Name Brainstormer4K
- Daily Meeting Update4K
- Game Changing Features4K
- Plugin Forge4K
- Naming Analyzer3.9K
- Lesson Learned3K
- Gepetto1.6K
- Requirements Clarity1K
- Jira854
- Draw Io838
- Mui824