Fetching all data in a top-level component via useEffect().
useEffect()
Manages the loading and error state in a via useState.
useState
(This is only for demoing. - Of course, there are libraries to support with this, like react-query, etc.)