2022-01-13
2103
#react
Iva Kop
85856
Jan 13, 2022 â‹… 7 min read

UI best practices for loading, error, and empty states in React

Iva Kop I am a self-taught software developer passionate about frontend development and architecture.

Recent posts:

​​How HTML’s Selectedcontent Element Improves Dropdowns

​​How HTML’s <selectedcontent> element improves dropdowns

is an experimental HTML element that gives developers control over how a selected option is displayed, using just HTML and CSS.

Temitope Oyedele
Jun 27, 2025 â‹… 6 min read
advanced caching in Node.js with Valkey

How to get faster data access in Node.js with Valkey

Learn how to implement an advanced caching layer in a Node.js app using Valkey, a high-performance, Redis-compatible in-memory datastore.

Muhammed Ali
Jun 27, 2025 â‹… 7 min read
how to properly handle rejected promises in TypeScript

How to properly handle rejected promises in TypeScript

Learn how to properly handle rejected promises in TypeScript using Angular, with tips for retry logic, typed results, and avoiding unhandled exceptions.

Lewis Cianci
Jun 26, 2025 â‹… 4 min read
Your AI Has Agency — Here’s How To Architect Its Frontend

Your AI has agency — here’s how to architect its frontend

AI’s not just following orders anymore. If you’re building the frontend, here’s how to design interfaces that actually understand your agent’s smarts.

Rosario De Chiara
Jun 25, 2025 â‹… 5 min read
View all posts

One Reply to "UI best practices for loading, error, and empty states in React"

  1. Hi,
    Thank you for this great article.

    1. How would you handle if cats data is never null, but is returned as an empty array? That makes handling progress more challenging?

    2. The suspense – looks interesting, there are some warnings about your implementation and react18. There is no progressBar?

    Cheers

Leave a Reply