August 2020
Beginner
806 pages
12h 44m
English
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.
JavaScript is a synchronous language and React, being a JavaScript framework, is synchronous too. Being synchronous means only one line of code can be executed at a time and the next line of code cannot start until the current code has finished executing. This can cause an issue when we make ...
Read now
Unlock full access