Lesson 3Custom hooks and classic async pattern
Components often have to load data by an HTTP request, diplaying an appropriate message when the data is loading or when an error occurred.
In this lesson, we’ll see how to make something elegant with hooks; and since this need is pretty standard, we will see how to extract the behavior into a reusable custom hook.