“For every place in my app that shows a list of items, add proper loading, empty, and error states. Use animated skeleton loaders while data loads, a friendly empty state with a CTA when there's nothing to show, and a clear error message with a retry button when fetching fails.”
How to use it
- Copy the prompt and paste it into your AI coding tool.
- Check the result in the preview, then ask for changes one at a time: "make the buttons bigger", "use my brand colours".
- Read the chapter to understand why it works and what to do next.