01Chapter 1: Every screen has more than one stateA data-driven screen is not one fixed picture. It changes as data is requested, received, updated, or rejected. A project list, for example, can show a loading state, a list of projects, an empty state, or an error state.3 min read
02Chapter 2: Loading states and how waiting feelsThis chapter assumes you know basic UI terms such as layout, component, and copy. You also understand that a web or mobile app may fetch data asynchronously, meaning the app starts a request and receives the result later. You can read basic HTML and TypeScript.3 min read
03Chapter 3: Choosing a loading patternAssume you know basic UI design vocabulary, asynchronous data fetching, HTML, and TypeScript. This chapter focuses on choosing how a screen communicates waiting. The goal is not to make every request look busy. The goal is to help people understand what is happening and what they can do while they w3 min read
04Chapter 4: Why a screen is emptyAssume you know basic UI terms such as components, layout, and copy. Also assume you understand that an app may fetch data asynchronously. This chapter focuses on a successful response that contains no items. A failed request is an error state, even if the page happens to look empty.3 min read
05Chapter 5: Writing and laying out an empty stateAssume you understand basic layout, components, asynchronous data fetching, HTML, and TypeScript. An empty state appears when a screen has no items to show. It should explain why the screen is empty and give the user a useful next action.2 min read
06Chapter 6: Kinds of errors users meetAssume you know basic UI design terms and how an application fetches data asynchronously. This chapter focuses on classifying errors so that each one gets the right message and recovery path. An error is not only a technical event. It is a change in what the user can do next.3 min read
07Chapter 7: Writing error messages that helpAssume you know basic UI components, asynchronous data fetching, HTML, and TypeScript. This chapter focuses on errors that occur after a user starts an action or requests data. The goal is not only to report failure. A useful error message helps the user understand what happened and choose the next 3 min read
08Chapter 8: Retry, fallback, and partial failureAssume you already understand components, asynchronous data fetching, and basic HTML and TypeScript. This chapter focuses on what happens after a request fails, especially when the user can still make progress.3 min read
09Chapter 9: Timing: delays, flicker, and transitionsAssume you understand components, asynchronous data fetching, and basic TypeScript. This chapter focuses on when a screen changes state, not on the visual design of each state.3 min read
10Chapter 10: Making state changes accessibleAssume you already know basic UI design, asynchronous data fetching, HTML, and TypeScript. This chapter focuses on making loading, empty, and error states perceivable and usable with screen readers, keyboard navigation, and other assistive technology.3 min read
11Chapter 11: Modeling states in codeThis chapter assumes you know basic UI components, asynchronous data fetching, HTML, and TypeScript. The goal is to make the code reflect the states that your screen can actually have.2 min read
12Chapter 12: Reviewing and testing every statePrerequisites: You should know basic UI design terms, how an app fetches data asynchronously, and how to read HTML and TypeScript. This chapter assumes you already know the main loading patterns, empty-state types, error categories, and accessibility tools such as live regions.3 min read