react-expert

Implements React 19 components, hooks, and state management with TypeScript.

Updated Mar 9, 2026
One-click install
npx skills add https://github.com/ArMaTeC/Redball --skill react-expert-armatec
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: react-expert
Source: https://github.com/ArMaTeC/Redball/tree/main/.devin/skills/react-expert
Command: npx skills add https://github.com/ArMaTeC/Redball --skill react-expert-armatec

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Building modern React applications requires navigating Server Components, React 19 hooks, state management choices, and performance pitfalls, and this Skill provides structured guidance and production-ready patterns for all of them. ## Core Features & Use Cases - Component Implementation: Creates TypeScript components using React 19 features like useActionState, use(), useOptimistic, and Server Components for Next.js App Router. - State Management & Data Fetching: Implements Context, Zustand, Redux Toolkit, and TanStack Query patterns with proper typing and caching. - Migration & Optimization: Converts class components to hooks, applies memoization, code splitting with lazy(), virtualization, and useTransition for responsive UIs. - Use Case: When migrating a legacy class-based dashboard to React 19, the Skill maps lifecycle methods to useEffect, replaces HOCs with custom hooks, and validates types with tsc --noEmit. ## Quick Start Ask the assistant to build a React 19 form component with useActionState and TypeScript, including tests with React Testing Library.

Frequently Asked Questions about react-expert

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

FAQPage Schema
How do I migrate a React class component to hooks?▼

Map constructor state to useState, componentDidMount and componentDidUpdate to useEffect with dependency arrays, and componentWillUnmount to effect cleanup functions. Replace shouldComponentUpdate with React.memo and HOCs or render props with custom hooks.

What state management library should I use with React 19?▼

Use useState for local state, Context for simple globals like theme, Zustand for medium complexity with minimal boilerplate, Redux Toolkit for complex state with devtools, and TanStack Query for server state and caching.

How do React Server Components work in Next.js App Router?▼

Server Components are the default in App Router and support async/await data fetching directly without client bundle impact. Add the 'use client' directive only for components needing hooks, event handlers, or browser APIs.

Does React 19 still need forwardRef?▼

No, React 19 passes ref as a regular prop, so function components can accept ref directly in their props without forwardRef. Type it as React.Ref<HTMLInputElement> or the appropriate element type.

Why does my useEffect cause stale closure bugs?▼

Stale closures occur when effects capture outdated state due to missing dependencies. Fix them by using functional state updates like setCount(prev => prev + 1) or adding all used values to the dependency array.

When should I not migrate a class component to hooks?▼

Keep class components for error boundaries, since componentDidCatch has no hook equivalent. Also avoid migrating stable, working components when the team lacks hooks expertise or migration risk exceeds the benefit.