React 34 ⚛️ Handling Loading and Error States
Every asynchronous operation has three possible outcomes: it is still running, it succeeded, or it failed. A React component that fetches data must represent all three. The previous chapter introduced the three states as part of the fetch pattern. This chapter treats them as a design problem in their own right: how to model them,…