react-ui-patterns

Standardize loading, error, and empty states in React components.

Updated Jan 12, 2026
One-click install
npx skills add https://github.com/giosuetedeschi-spec/bobu-website --skill react-ui-patterns-giosuetedeschi-spec
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-ui-patterns
Source: https://github.com/giosuetedeschi-spec/bobu-website/tree/main/.claude/skills/react-ui-patterns
Command: npx skills add https://github.com/giosuetedeschi-spec/bobu-website --skill react-ui-patterns-giosuetedeschi-spec

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the common pitfalls in React UI development, such as inconsistent loading states, swallowed errors, and poor user feedback during asynchronous operations.

Core Features & Use Cases

  • Standardized UI States: Provides clear patterns for loading, error, and empty states to ensure a consistent user experience.
  • Async Handling: Defines best practices for managing mutations, button states, and optimistic updates to prevent UI glitches.
  • Use Case: When building a complex dashboard, use these patterns to ensure that data fetching errors are surfaced via toasts and that buttons are correctly disabled during form submissions to prevent duplicate requests.

Quick Start

Apply the react-ui-patterns guidelines to refactor the current component to ensure loading indicators only appear when no data is present and all mutations include error handling.

Frequently Asked Questions about react-ui-patterns

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

FAQPage Schema
How do I handle React loading states so indicators only appear when there is no data?

To handle React loading states properly, apply explicit loading, error, and empty state hierarchies. This ensures loading indicators only appear when no data is present, preventing UI glitches and providing consistent user feedback.

What is the best way to prevent duplicate requests during React form submissions?

The best way to prevent duplicate requests during React form submissions is to standardize mutation handling. This involves correctly disabling buttons during asynchronous operations and managing optimistic updates to prevent UI glitches.

Why does my React component swallow errors during data fetching?

React components swallow errors during data fetching due to inconsistent error handling patterns. Standardizing UI state management surfaces these data fetching errors via toasts and enforces strict error state hierarchies for robust user feedback.

How do I manage empty states in React dashboard components?

To manage empty states in React dashboard components, apply standardized UI state patterns. This enforces a clear hierarchy across loading, error, and empty states, ensuring consistent user feedback when data fetching returns no results.

Does this UI patterns approach work for complex React dashboards?

Yes, this UI patterns approach works for complex React dashboards. It standardizes UI state management and data-fetching logic, ensuring that asynchronous operations surface errors via toasts and maintain consistent feedback across robust components.