react-expert

Implement production-grade React 18+ and 19 components with TypeScript strict mode.

14|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/alexander-danilenko/ai-skills --skill react-expert-alexander-danilenko
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-expert
Source: https://github.com/alexander-danilenko/ai-skills/tree/main/skills/react-expert
Command: npx skills add https://github.com/alexander-danilenko/ai-skills --skill react-expert-alexander-danilenko

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

The React Expert skill eliminates uncertainty when designing and implementing modern React applications by providing clear architecture decisions, migration patterns, and production-ready component implementations for React 18+ and React 19 features.

Core Features & Use Cases

  • Component Architecture & Patterns: Advice on Server vs Client boundaries, component hierarchy, and composition for scalable applications.
  • State & Data Strategies: Guidance for local state, Context, Zustand, Redux Toolkit, and TanStack Query integration patterns.
  • Performance & Stability: Recommendations for Suspense boundaries, memoization, virtualization, useTransition, and effect cleanup to avoid common pitfalls.
  • Testing & Migration: Test templates, hooks testing, and step-by-step migration guidance from class components to hooks and Server Components.
  • Use Case: Design a typed Server Component with a client-bound interactive widget, integrate optimistic updates via useOptimistic, and provide corresponding unit and integration tests.

Quick Start

Ask the react-expert to implement a TypeScript React 19 Server Component that fetches product data with Suspense, a client component for adding items to cart using Zustand, and unit tests for the client logic.

Frequently Asked Questions about react-expert

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

FAQPage Schema
How do I structure Server Components and Client Components in React 19?

Structure React 19 Server Components and Client Components by defining clear boundaries, establishing component hierarchy, and using composition patterns for scalable application architecture. This approach isolates interactive client widgets while fetching data on the server.

What's the best way to manage state with Zustand and TanStack Query in modern React apps?

Manage state in modern React apps by separating server state handled by TanStack Query from client state managed via Zustand or Redux Toolkit. This ensures optimal data fetching, caching, and local UI state synchronization.

How do I implement optimistic updates with useOptimistic in React 19?

Implement optimistic updates in React 19 using the useOptimistic hook to immediately reflect expected state changes in the UI. This provides responsive user feedback while actual server mutations process asynchronously in the background.

How do I use Suspense boundaries for data fetching in React Server Components?

Use Suspense boundaries in React Server Components to wrap asynchronous data fetching operations, rendering fallback UI during loading states. This pattern ensures stable performance and prevents UI blocking during network requests.

How do I write unit tests for React hooks and client logic?

Write unit tests for React hooks and client logic using provided test templates that validate state changes, effect cleanup, and component rendering. This ensures robust test coverage for interactive client-side functionality.

Does this React architecture approach support TypeScript strict mode?

Yes, this React architecture approach fully supports TypeScript strict mode requirements. Component implementations and state management integrations are designed to meet strict type safety constraints for robust production-grade applications.