react

Guide React TypeScript development with component patterns, state management, and testing.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/paulund/ai --skill react-paulund
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react
Source: https://github.com/paulund/ai/tree/main/react/skills/react
Command: npx skills add https://github.com/paulund/ai --skill react-paulund

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the development of React components by providing best practices, patterns, and guidance for TypeScript, state management, performance, and testing.

Core Features & Use Cases

  • Component Development: Implement reusable and type-safe React components using TypeScript.
  • State Management: Choose and implement appropriate state management solutions (Context, Zustand, TanStack Query).
  • Performance Optimization: Apply techniques like memoization, code splitting, and virtualization to ensure smooth user experiences.
  • Testing: Write comprehensive tests for components and custom hooks using React Testing Library and Vitest.
  • Use Case: Develop a complex dashboard with multiple interactive charts and forms, ensuring optimal performance and maintainability.

Quick Start

Use the react skill to create a new TypeScript React component for a user profile card.

Frequently Asked Questions about react

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

FAQPage Schema
How do I build type-safe React components with TypeScript?

Build type-safe React components by implementing reusable patterns using TypeScript, ensuring strict typing for props and state. This approach streamlines component development and prevents runtime type errors.

What's the best way to manage state in a complex React application?

Manage state in complex React applications by choosing appropriate solutions like the Context API, Zustand, or TanStack Query. Selecting the right tool ensures optimal performance and maintainability for your specific use case.

How do I optimize React performance for interactive dashboards with multiple charts?

Optimize React performance for interactive dashboards by applying memoization with React.memo, code splitting via lazy loading, and virtualization. These techniques ensure smooth user experiences during heavy rendering tasks.

How do I test custom hooks and React components?

Test custom hooks and React components by writing comprehensive tests using React Testing Library and Vitest. This strategy validates component behavior and hook logic effectively across your application.

Can I use Zustand and TanStack Query together for React state management?

Yes, you can use Zustand and TanStack Query together for React state management. Zustand handles client-side UI state while TanStack Query manages server state, providing a robust architecture for complex applications.

When should I use React.memo for performance optimization?

Use React.memo for performance optimization when components render frequently with identical props, preventing unnecessary re-renders. Combine this with lazy loading and virtualization to maintain smooth user experiences.