If you want to know more about data fetching with hooks, you can read these two articles, too: A Complete Guide to useEffect & How to fetch data with React Hooks?.
For a short video tutorial on useEffect, I recommend Ben Awad’s video:
Further Reading
- React.js - How to Fetch Data (feat. React Hooks, Render Props) by Reed Barger
- How to fetch data with React Hooks? by Robin Wieruch
- A Complete Guide to useEffect by Dan Abramov
- React Hooks useEffect Tutorial by Ben Awad