react-ui-patterns

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

1|1|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/przbadu/skills-factory --skill react-ui-patterns-przbadu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-ui-patterns
Source: https://github.com/przbadu/skills-factory/tree/main/skills/react-ui-patterns
Command: npx skills add https://github.com/przbadu/skills-factory --skill react-ui-patterns-przbadu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you build React interfaces that handle loading, empty, and error states correctly so users always see the right UI at the right time.

Core Features & Use Cases

  • Loading state rules: Show loaders only when there is no data yet, preventing stale content from flashing during refetches.
  • Error handling patterns: Surface failures clearly with inline messages, toasts, banners, or full-page error states depending on severity.
  • Async interaction safety: Disable buttons during submission, provide retry actions, and ensure every mutation gives user feedback.
  • Use cases: Ideal for dashboards, forms, list views, and data-driven components that fetch remote data or submit mutations.

Quick Start

Use the react-ui-patterns skill to review my component and rewrite its loading, empty, and error states using the recommended React patterns.

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 loading and error states in React components that fetch async data?

React UI patterns standardize loading, empty, and error states by enforcing explicit user feedback, safe button disabling during mutations, conditional loading display to prevent stale content flashing, and retry affordances for failed async data fetches.

What is the best way to manage empty states in React list views and dashboards?

The best way to manage empty states in React dashboards and lists is to standardize the rendering of partial results and apply graceful degradation. This enforces explicit user feedback when fetched data contains no items, ensuring a consistent interface.

How do I disable buttons safely during form submission mutations in React?

To disable buttons safely during React form submission, apply async interaction safety patterns that prevent duplicate mutations and provide explicit user feedback. This guarantees every mutation gives appropriate user feedback until the process completes.

How do I prevent stale content from flashing during React data refetching?

Prevent stale content flashing during React data refetching by applying conditional loading display rules that show loaders only when there is no data yet, ensuring existing data remains visible until new data arrives.

Does this React UI patterns skill work with TypeScript components?

Yes, this React UI patterns skill works with TypeScript components to standardize loading, empty, and error states. It applies to components that fetch async data, submit mutations, or render partial results in dashboards, forms, and lists.