15. Promise API and async/await
Overview
This chapter takes a deep dive into the Promise API and the methods used in order to make a network request. You will be introduced to another method, async
/await
, and eventually you will be able to explain why async/await is better than the Promise API. By the end of this chapter, you will have a good understanding of essential techniques in React and the modern way to fetch data from the server.