react

Guides React development with best practices for component architecture, state management, and TypeScript integration.

567|82|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/pedronauck/skills --skill react-pedronauck
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react
Source: https://github.com/pedronauck/skills/tree/main/skills/react
Command: npx skills add https://github.com/pedronauck/skills --skill react-pedronauck

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide to building robust, maintainable, and performant React applications, ensuring adherence to modern best practices and efficient development workflows.

Core Features & Use Cases

  • Component Architecture: Learn patterns for building scalable and reusable UI components.
  • State Management: Understand the hierarchy and best tools for managing local, client, and server state.
  • TypeScript Integration: Implement strong typing for props, hooks, and components.
  • Testing: Write effective tests for components and hooks using Vitest.
  • Use Case: When starting a new React project or refactoring an existing one, use this Skill to ensure your codebase follows established patterns for structure, state, and typing, leading to fewer bugs and easier maintenance.

Quick Start

Review the 'references/best-practices.md' file for detailed React development guidelines.

Frequently Asked Questions about react

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

FAQPage Schema
What is the best way to manage state in React using Zustand and TanStack Query?

The best way to manage React state is by separating concerns: use useState and useReducer for local state, Zustand for client state, and TanStack Query for server state. This hierarchy ensures robust data fetching and maintainable architecture.

How do I structure React components to follow best practices for separation of concerns?

Structure React components by enforcing functional components and the single responsibility principle. This approach separates data fetching, state management, and UI rendering, leading to scalable and reusable component architecture.

How do I test React custom hooks and components using Vitest?

You test React custom hooks and components using Vitest by writing effective tests that validate component rendering and hook logic. This ensures application reliability and prevents regressions in your React development workflow.

Can I use TypeScript integration with React custom hooks and state management?

Yes, you can implement TypeScript integration with React by applying strong typing to props, custom hooks, and components. This works alongside state management tools like useReducer and Zustand to ensure type-safe development.

When do I need Error Boundaries for React data fetching with TanStack Query?

You need Error Boundaries when fetching data with TanStack Query to gracefully catch and handle unexpected rendering errors. This approach ensures robust error handling and prevents the entire React application from crashing.