Utils

Get an overview of some util functionalities such as libraries, commands, and plugins that are useful in the context of JavaScript frameworks.

We'll cover the following

Libraries

Let’s look at examples of libraries that are often used when building applications based on JavaScript frameworks.

HTTP

To make things easy with asynchronous requests, some frameworks provide wrappers around the XMLHttpRequest object or API Fetch. An alternative approach for asynchronous requests is theor API Fetch. In this section, we’ll learn to create a simple library for HTTP that provides easy methods to deal with requests. First, create an object with a predefined setter that takes a request as an argument. Below is an example of a Request object structure, we can create additional attributes or rename the existing ones:

Get hands-on with 1200+ tech skills courses.