react-dev

Generate typed React 18-19 components, hooks, and routing patterns.

1|1|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/przbadu/skills-factory --skill react-dev-przbadu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-dev
Source: https://github.com/przbadu/skills-factory/tree/main/skills/react-dev
Command: npx skills add https://github.com/przbadu/skills-factory --skill react-dev-przbadu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

React TypeScript projects often suffer from weak typing, brittle refactors, and inconsistent patterns across components, hooks, events, and routing.

Core Features & Use Cases

It provides copy-ready guidance for typing props, children, generics, custom hooks, event handlers, server components, React 19 actions, and type-safe routing with TanStack Router or React Router v7. Use it when building reusable UI primitives, migrating to React 19, wiring forms and refs, or standardizing application architecture with compile-time safety. The reference files expand on edge cases for hooks, event systems, generic components, server actions, and router APIs.

Quick Start

Ask for a typed React component, hook, or route pattern and I will return production-ready TypeScript with the correct React 18-19 typing guidance.

Frequently Asked Questions about react-dev

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I type React 19 ref-as-prop and useActionState patterns in TypeScript?

Type React 19 ref-as-prop and useActionState patterns by using explicit prop and event generics to eliminate TypeScript ambiguity. This approach provides compile-time safety for form actions and ref forwarding without requiring manual type assertions.

What is the best way to type custom hooks and event handlers in React?

The best way to type custom hooks and event handlers is to enforce safe hook return typing and explicit event generics. This prevents brittle refactors and ensures consistent type inference across React 18 and 19 projects.

How do I create type-safe routing with TanStack Router or React Router v7?

Create type-safe routing by integrating typed route patterns with TanStack Router or React Router v7 APIs. This ensures compile-time validation of route parameters and search params across your application architecture.

Does this React TypeScript guidance support both React 18 and React 19 projects?

Yes, this React TypeScript guidance supports both React 18 and 19 projects. It provides copy-ready TypeScript patterns for typed component design, custom hooks, and server components across both versions.

Why does TypeScript ambiguity happen in React components and how do I fix it?

TypeScript ambiguity in React components happens when props, children, and generics lack explicit typing. Fix it by requiring explicit prop and event generics, ensuring safe hook return typing, and standardizing application architecture with compile-time safety.