In this section.
Let's have a look at how to make a HTTP request in react.
HTTP request is a crucial part of any web application.
So in this section we will explore how to use the use effect in React to make an HTTP request.
We will also look at some of the tips for handling errors and loading data.
So making a HTTP request simply means that fetching data from external API or server into react application
and we are going to make use of use effect who and react.
So let's have a look at what is actually used effect the use effect who is react JS feature that allows
you to perform side effects in your component.
So a side effect are operations that don't directly affect the render of your component, but instead
they can be used to perform other operations such as making HTTP requests and that is what we are going
to use.
So in this section we will explore how to use the use effect hook to make HTTP request in React JS application.
We will look at some of the types of handling errors and loading data.
So the use effect hook is similar to component amount and component.
The update and component will amount lifecycle and react class component.
So if you are familiar with React before the current version, we use what is called a mean class method
or class way of creating component.
So you can think of this effect as performing the action after the render is committed to the screen.
So in the next video we will have a look at how to make a HTTP request in React using use effect.